Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7317: [type_traits] remove_const not working on vc11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-02 08:56:27
#7317: [type_traits] remove_const not working on vc11
-------------------------------+--------------------------------------------
Reporter: eric_niebler | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by johnmaddock):
Eric I'm not sure what I can do here: I don't have that compiler (and
won't until they decide to release the desktop express edition), but more
particularly it looks like a clear compiler bug. That code has been
unchanged since the beginning of time and always worked well too. Do you
have VC11? If so you could try adding a:
template <typename T>
struct cv_traits_imp<T*const*>
{
BOOST_STATIC_CONSTANT(bool, is_const = true);
BOOST_STATIC_CONSTANT(bool, is_volatile = false);
typedef T* unqualified_type;
};
partial specialization to cv_traits_imp.hpp and see if that helps?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7317#comment:1> 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:10 UTC