Opened 7 years ago

Closed 7 years ago

#11900 closed Bugs (fixed)

add_reference<const void>::type == void

Reported by: Willi Karel <wilfried.karel@…> 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; };

Change History (1)

comment:1 by John Maddock, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.