Use of Boost library classes in kdecore?

Frank Osterfeld frank.osterfeld at gmx.de
Fri Jul 6 23:43:15 BST 2007


On Saturday 07 July 2007 06:57:03 Thomas Zander wrote:

> Naturally, this seems like a design that could be improved upon; the usage
> of shared pointers IMO works best if you do not delete those instances on
> that reload.  What about updating those instances in-place  instead? That
> surely will save a ripple effect of loads and loads of code having to do
> checking if the shared-pointer is still valid.
> And checking such a thing; well then you should just have used a QPointer.

QPointer works only with QObjects.

> Bottom line; I would really dislike using boost in kdelibs.  Not that I
> have anything against boost per-see. But lets please keep the level of
> complexity (learning new stuff) to a minimum so people can actually roll
> into hacking on kdelibs a bit easier.  Just because you like boost
> doesn't mean all the potential kdelibs hackers should learn to use it.

This is just about boost::shared_ptr, not about Boost lambda, Template Meta 
Programming, whatever voodoo boost lib comes to mind.
And using boost::shared_ptr shouldn't be any harder than any other shared 
pointer implementation.

Regards,

Frank





More information about the kde-core-devel mailing list