Subject: [Boost-bugs] [Boost C++ Libraries] #11900: add_reference<const void>::type == void
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-10 17:06:28
#11900: add_reference<const void>::type == void
-----------------------------------------------+-------------------------
Reporter: Willi Karel <wilfried.karel@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
Version: Boost 1.60.0 | Severity: Regression
Keywords: add_reference void const volatile |
-----------------------------------------------+-------------------------
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; };
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11900> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC