JDK-8251274 : Provide utilities for function SFINAE using extra template parameters
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-08-07
  • Updated: 2024-11-20
  • Resolved: 2020-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b14Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
C++11 allows default values for function template parameters. This provides a new way to control function template overloads via SFINAE. The syntax is somewhat finicky, but can be simplified using alias templates and/or macros.  The resulting syntax is nicer than either of the C++98 mechanisms for controlling overloads.  We should provide some utilities for that purpose.

Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/4549a3e87a25 User: kbarrett Date: 2020-09-02 02:32:01 +0000
02-09-2020