On Friday 13 November 2015 00:11:43 Elvis Stansvik wrote: > Actually it's not wrong. It's the const char* version that was added in > C++11. > > http://en.cppreference.com/w/cpp/error/runtime_error is wrong (I'm > guessing that's where you looked as well).
Right. The C++98 standard in 19.1.6 [lib.runtime.error] says: namespace std { class runtime_error : public exception { public: explicit runtime_error(const string& what_arg); }; } N3291 (C++11 final) has the extra constructor. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest