[patch] Looking for an opinion on std::auto_ptr
Ian Monroe
ian at monroe.nu
Thu Oct 23 01:01:04 CEST 2008
On Wed, Oct 22, 2008 at 8:25 AM, Martin Aumueller <aumuell at reserv.at> wrote:
> On Mon October 20 2008, Mark Kretschmann wrote:
> [...]
>> >
>> > 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.
>>
>> Getting completely rid of STL is actually a noble goal, as it could
>> potentially reduce startup times.
>
> I don't expect that the Standard Template Library causes notable startup
> delays as it does not link to additional shared libraries: all the code is
> generated at compile time and contained within the Amarok binary/shlibs. So I
> don't think that this is a reason to stop to profit from the Qt container
> classes' STL compatibility.
This is kind of a separate discussion. Anyways, the reason KDE and
Amarok compile with -DQT_NO_STL is to decrease compile times (which it
does quite substantially).
Ian
More information about the Amarok-devel
mailing list