Boost logo

Boost :

Subject: Re: [boost] [type traits] add a set of templates to propagate const etc from one type to another?
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2010-03-02 12:49:32


On Tue, Mar 2, 2010 at 11:42 AM, Rutger ter Borg <rutger_at_[hidden]> wrote:

> Vasilis Vasaitis wrote:
>
> [snip]
> >
> > That is, propagate_const<Source, Target> will only add const to
> > Target if Source is const too.
> >
> [snip]
>
> 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.

-- 
-Matt Calabrese

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