[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Use of Boost library classes in kdecore?
From:       Frank Osterfeld <frank.osterfeld () gmx ! de>
Date:       2007-07-06 22:43:15
Message-ID: 200707070043.15626.frank.osterfeld () gmx ! de
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic