On 13.11.2015 02:20, Thiago Macieira wrote:
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.
Right, guys.I saw at the standard and I don't know haw but I saw that
runtime_error( const std::string & ) was added in C++11, when actually
runtime_error( const char * ) was added in C++ 11. :)
--
Best Regards,
Igor Mironchik.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest