[Development] Deprecating QString::{v,}sprintf()

Marc Mutz marc.mutz at kdab.com
Tue Feb 21 12:12:52 CET 2012


On Tuesday February 21 2012, Thiago Macieira wrote:
> On terça-feira, 21 de fevereiro de 2012 10.56.41, Marc Mutz wrote:
> > Bottomline: until we can expect variadic template support for Qt, I think
> > we  need to keep it. Many people have over the years tried to eradicate
> > printf, but it's syntax is just too compact.
>
> Add a C++11 proper function and let people who don't have C++11 use
> QString::arg.

QString::arg() can't deal with va_lists. Are you proposing to disable qDebug() 
for non-C++11-compilers? :)

> I'm ok with adding C++11-only options (provided a C++98-built Qt can still
> provide them).

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4700 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120221/6bf78e29/attachment.bin>


More information about the Development mailing list