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.
// 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
- relates to
-
JDK-8186838 Generalize Atomic::inc/dec with templates
-
- Resolved
-