Are exception descriptions from exception::what() standarized for standard exceptions?

Viewed 108

For standardized exceptions like std::bad_alloc, is the string returned by exception::what() expected to be the same across compilers?

For example, several compilers I've worked with all return bad allocation for bad_alloc::what(). Is there some reason a more descriptive string such as Memory allocation failure isn't returned?

2 Answers
Related