Boost logo

Boost :

From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2006-01-04 11:10:47


Hi David,

Nice to know your name :-)

>>Note that DerivedDerivedS1/S2 does not implement do_clone().
>>
>
>
> Yes. That's exactly the point I'm trying to make.
> Both the boost pointer containers and the cow_ptr/copy_ptr method can
> result in splicing via improper usage.

right, if you don't make a class clonable in a proper manner, it wont be
cloned in a proper manner. <g>

> Both methods can produce splicing via derive-derive type, and both
> methods can produce splicing via derive type of a non-abstract type.
>
> Furthermore, making the class non-copyable does not prevent the splicing
> in a pointer idiom.

I'm not sure this is called splicing.

I'd call it a bug.

-Thorsten


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