Boost logo

Boost :

Subject: Re: [boost] [type traits] add a set of templates to propagate const etc from one type to another?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-03-02 11:42:25


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.

Cheers,

RUtger


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