about kde4's smart pointer
Thiago Macieira
thiago at kde.org
Tue Oct 3 16:10:48 BST 2006
Cyrille Berger wrote:
>On Tuesday 03 October 2006 16:08, Thiago Macieira wrote:
>> Doesn't QSharedData/QSharedDataPointer do what you want? They have
>> copy-on-write semantics, though.
>
>yes and that's the problem :) They are designed to reduce the number of
> copy, not to replace pointers and be used as smart pointers.
There's QPointer, but your object has to be a QObject.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061003/82c0d301/attachment.sig>
More information about the kde-core-devel
mailing list