Use of Boost library classes in kdecore?

Thiago Macieira thiago at kde.org
Sat Jul 7 10:01:19 BST 2007


David Jarvie wrote:
>To successfully use reference counting, you need to do it as
> automatically as possible. KShared (alias QSharedData) doesn't do it
> itself - it's done by KSharedPtr (or QSharedDataPointer, which provides
> automatic cloning when non-const methods are called, which is not
> appropriate for KTimeZone). shared_ptr in the Boost library does a
> similar thing to KSharedPtr, but provides other necessary functionality
> as well.

QExplicitlySharedDataPointer

We need to get the Trolls to document that one and add the missing 
detach() method.

-- 
  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: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070707/7675d384/attachment.sig>


More information about the kde-core-devel mailing list