|
Boost : |
Subject: Re: [boost] [type_traits] Proposal: same_xxx
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2014-06-08 10:06:16
2014-06-08 15:08 GMT+02:00 Peter Dimov <lists_at_[hidden]>:
> Adam Wulkiewicz wrote:
>
>> Hi,
>>
>> Recently I found some use for a tool adding const to a type if some other
>> type is const.
>>
>
> ...
>
> same_cv<BaseT, T>
>>
>
> That's usually called copy_cv, and Google finds
>
> https://svn.boost.org/trac/boost/ticket/3970
>
> and
>
> http://www.boost.org/doc/libs/master/boost/log/detail/copy_cv.hpp
>
>
Thanks for the info. same_cv is slightly different it could also remove
qualifiers.
> The rest of the traits don't seem particularly popular.
>
Ok.
Regards,
Adam
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk