 
            
            
            
            
                26 Apr
                
                    2005
                
            
            
                26 Apr
                
                '05
                
            
            
            
        
    
                11:44 p.m.
            
        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. :-)