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

IntegralConstant should not be AllStatic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 10
    • 10
    • hotspot
    • None
    • 10
    • b31
    • generic
    • generic

    Description

      IntegralConstant currently derives from AllStatic. That's wrong; it should be (default) constructable. From the requirements:

      // A type n is a model of Integral Constant if it meets the following
      // requirements:
      //
      [...]
      // n::value_type const c = n() : c == n::value

      This is also needed for compatibility with C++11 std::integral_constant.

      Attachments

        Issue Links

          Activity

            People

              kbarrett Kim Barrett
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: