Boost logo

Boost :

Subject: Re: [boost] [type_traits] Proposal: same_xxx
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2014-06-09 09:19:20


2014-06-08 16:16 GMT+02:00 Adam Wulkiewicz <adam.wulkiewicz_at_[hidden]>:

> 2014-06-08 15:18 GMT+02:00 Andrey Semashev <andrey.semashev_at_[hidden]>:
>
> > On Sunday 08 June 2014 16:08:07 Peter Dimov wrote:
> > > 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
>

Ah, and I didn't know this name, so I wrote myself traits like this a while
ego.

> > >
> > > https://svn.boost.org/trac/boost/ticket/3970
> > >
> > > and
> > >
> > > http://www.boost.org/doc/libs/master/boost/log/detail/copy_cv.hpp
> > >
> > > The rest of the traits don't seem particularly popular.
> >
> > I'm ok with moving it to TypeTraits, if anyone's interested.
> >
>
> It's a good place for it, regarding the modularization.
> Separate copy_const and copy_volatile could be a nice complement.
>

+1

Cheers,
Kris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk