Opened 7 years ago
Closed 7 years ago
#11900 closed Bugs (fixed)
add_reference<const void>::type == void
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | type_traits |
Version: | Boost 1.60.0 | Severity: | Regression |
Keywords: | add_reference void const volatile | Cc: | opals@… |
Description
Since boost 1.60.0, the specializations of add_reference for
cost void, const volatile void, volatile void,
all yield void. I believe they should instead yield their argument types, as is the case for boost 1.59 and before.
The fix is simple, in add_reference.hpp:
template <> struct add_reference<const void> { typedef const void type; }; template <> struct add_reference<const volatile void> { typedef const volatile void type; }; template <> struct add_reference<volatile void> { typedef volatile void type; };
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/boostorg/type_traits/commit/217c337233454a41b41176b43577ef534dd0fe97