GLib/GObject+C as the lingua franca?

Ingo Klöcker kloecker at kde.org
Sun Jul 27 22:23:09 BST 2008


On Sunday 27 July 2008, Thiago Macieira wrote:
> Ingo Klöcker wrote:
> >On Sunday 27 July 2008, nf2 wrote:
> >> The attached example implements the "GO" template class and tests
> >> it a little - valgrind reports 0 leaks :-)
> >> A bit like a C++ class with QExplicitlySharedDataPointer.
> >
> >There's no need to reinvent the wheel:
> >
> >http://www.boost.org/doc/libs/1_35_0/libs/smart_ptr/intrusive_ptr.ht
> >ml
> >
> >
> >I doubt people would be happy if you'd introduce a dependency on
> > boost, but you could still copy the well-tried implementation of
> >boost::intrusive_ptr<T> instead of rolling your own implementation.
>
> I'm rolling out QSharedPointer which will have both shared_ptr and
> intrusive_ptr functionality for Qt 4.5.

Why do you Trolls have to do everything by yourself? ;-)


> There's no need for a Boost dependency.

Sometimes a Boost dependency is acceptable while a Qt dependency is not. 
In particular, in case of an LGPL'd library a Qt dependency is not an 
option.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080727/21a05b59/attachment.sig>


More information about the kde-core-devel mailing list