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

IntegralConstant should not be AllStatic

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: