[Interest] MSVC 2013 Bug?

Igor Mironchik igor.mironchik at gmail.com
Mon Nov 16 05:25:04 CET 2015



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.




More information about the Interest mailing list