[patch] Looking for an opinion on std::auto_ptr

Erik Hovland erik at hovland.org
Mon Oct 20 19:59:36 CEST 2008


> On Monday 20 October 2008 13:02:12 Erik Hovland wrote:
>> I am a sucker for std::auto_ptr. Since I know of my weakness, I wanted to
>> check the temperature of the rest of the developers. Mainly because
>> auto_ptr is not yet
>> used.
>
> You'd probably be better off using QPointer instead of std:auto_ptr, if only
> because Amarok uses Qt wherever possible.  It looks like the only place that
> STL is used in core Amarok code is a couple of places where I used STL
> algorithms where no Qt equivalent exists.

OK. But I think you are refering to QSharedPtr. QPointer won't do it. I also
received a hint on IRC for KSharedPtr. I will give the later a try first. Thanks
for the reply.

E

-- 
Erik Hovland
erik at hovland.org
http://hovland.org/


More information about the Amarok-devel mailing list