Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-26 16:44:26


Howard Hinnant wrote:
> On Apr 26, 2005, at 11:37 AM, Peter Dimov wrote:
>
>> ConstPropagation policy (with the default being No for shallow copy
>> and Yes for deep copy).
>
> I've been toying with a smart pointer adaptor for this one. I really
> haven't fully fleshed out the thinking on it though...
>
> template <class SP>
> class deep_const

Yes, conversion and checking can be implemented as adaptors, too.

But a really smart pointer would have the right default for const
propagation depending on the ownership policy. :-)


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