Boost logo

Boost :

Subject: Re: [boost] [type traits] add a set of templates to propagate constetc from one type to another?
From: John Maddock (john_at_[hidden])
Date: 2010-03-03 04:54:25


>> For the Numeric_Bindings library (under development) we're using an
>> identical mechanism called copy_const. I would welcome such an addition
>> to
>> the type traits library.
>
> I too have needed and created propogate const (actually propogate const
> and/or volatile). I'd definitely appreciate such an addition to
> Boost.TypeTraits.

My gut feeling would be to call this "copy_cv" and it would do what it's
name suggests, take a type and make it's cv-qualifiers the same as some
other type. Would someone please file a feature request on the Trac for
this so it doesn't get lost?

Thanks, John.


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