
4 Jan
2006
4 Jan
'06
4:10 p.m.
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