Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251274

Provide utilities for function SFINAE using extra template parameters

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b14

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: