Behaviour of const KSharedPtrs

Stefan Teleman steleman at
Sat Nov 13 00:04:45 GMT 2004

This is the const-correct behavior.



On Friday 12 November 2004 18:45, Richard Smith wrote:
> Now, is this a bug? I think so. KSharedPtr<T> is, after all,
> supposed to to have pointer-like semantics. Pointers don't behave
> this way. boost::shared_ptr doesn't behave this way. And if I
> really want this behaviour I can use a KSharedPtr<const T> instead.

Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at                          -Monty Python

More information about the kde-core-devel mailing list