[Development] The future of QtAlgorithms

Olivier Goffart olivier at woboq.com
Fri Jan 27 18:28:26 CET 2012


On Friday 27 January 2012 18:02:02 André Pönitz wrote:
> On Friday 27 January 2012 17:49:01 ext Jonas M. Gastal wrote:
> > On Friday 27 January 2012 09:42:19 Charley Bay wrote:
> > > > /me wonder why we still even care about QT_NO_STL
> > > > 
> > > > 
> > > > Embedded?
> > > 
> > > +1
> > > 
> > > Further, half of C++ developers *hate* STL.  (Long story, off-topic
> > > for
> > > here.)
> > > 
> > > --charley
> > 
> > So? It's not like we are telling them to use, just having Qt use it....
> 
> The #includes pull in a few tens of thousands heavily templated code
> which used to have visible impact on compile times, for the dubious
> benefit of being able to access things like
> 
>    QString fromStdString(const std::string &s)
> 
> I am not sure how the situation looks nowadays.

And this is because we want to support compiling Qt with QT_NO_STL that we 
were forced to put that function in the header.
If we were able to have QString::fromStdString in qstring.cpp we would just 
include <string> from qstring.cpp instead of from the headers.




More information about the Development mailing list