about kde4's smart pointer

Cyrille Berger cberger at cberger.net
Wed Oct 4 08:35:41 BST 2006


> Or dynamicCast, if you're going the other way.
Well without smart pointers, I can do KisDevice* device = new 
KisPaintDevice(); And as I think smart pointers should behave like C++ 
pointers I should be able to do it. Of course, KisPaintDeviceSP pd = device; 
shouldn't be possible.

-- 
--- Cyrille Berger ---




More information about the kde-core-devel mailing list