15.06.2012, 17:50, "Giuseppe D'Angelo" <dange...@gmail.com>: > On 15 June 2012 14:35, Sven Anderson <sven.ander...@snom.com> wrote: > >> On 15.06.2012 14:58, Thiago Macieira wrote: >>> Any one care to give me the Standard Library equivalent of: >>> >>> QString::number(x) >> string to_string(int) ? > > No go, C++11 only.
#if NO_CXX11_AVAILABLE std::string to_string(int x) { std::static_cast<std::ostringstream*>( &(std::ostringstream() << x ) )->str(); } #endif -- Regards, Konstantin _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest