[Qt5-feedback] C++0x: QString literals
Stefan Majewsky
stefan.majewsky at googlemail.com
Wed Jul 13 15:22:52 CEST 2011
Hi,
C++0x seems to be adding support for user-defined literals. [1] Is
Nokia planning to add support for this to replace e.g. QLatin1String?
Code could then look like this:
> void f(const QString&);
> //...
> f(QLatin1String("foobar")); //C++ pre-0x
> f("foobar"q); //C++0x
Greetings
Stefan
[1] http://en.wikipedia.org/wiki/C++0x#User-defined_literals
More information about the Qt5-feedback
mailing list