Behaviour of const KSharedPtrs

Stefan Teleman steleman at nyc.rr.com
Sat Nov 13 00:04:45 GMT 2004


This is the const-correct behavior.

--Stefan

-----

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 nyc.rr.com                          -Monty Python





More information about the kde-core-devel mailing list