Re: [Boost-bugs] [Boost C++ Libraries] #11257: remove_cv does not work with references

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11257: remove_cv does not work with references
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-30 16:34:24


#11257: remove_cv does not work with references
---------------------------+-------------------------
  Reporter: ncornu@… | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: | Component: type_traits
   Version: Boost 1.58.0 | Severity: Regression
Resolution: invalid | Keywords:
---------------------------+-------------------------
Changes (by johnmaddock):

 * status: new => closed
 * resolution: => invalid

Comment:

 That's the way it's supposed to work (if you'd tried {{{std::remove_cv}}}
 you will get the same behaviour).

 If you want to strip both references and cv-qualifiers you would need
 {{{remove_cv<remove_reference<T>::type>::type}}}.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11257#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:18 UTC