For standardized exceptions, such as std::bad_alloc, should the string returned exception::what()be the same for all compilers?
For example, several compilers with which I worked with all return bad allocationfor bad_alloc::what(). Is there a reason why a more descriptive string, such as Memory allocation failure, is not returned?
source
share