|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-26 17:39:31
Thorsten Ottosen wrote:
> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:093101c54aa9$6be49c80$6401a8c0_at_pdimov2...
>> 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. :-)
>
> could you explain what that default would be?
> (I think I know the answer; I definitely know what I think the answer
> should be, but I would like Howard hear you say it)
You have quoted it:
>>>> ConstPropagation policy (with the default being No for shallow >>>>
>>>> copy and Yes for deep copy).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk