The way std::exception works is that all members (including constructors) are required not to throw exceptions. So, for exception types with constructors that accept a string argument (eg logic_error) will attempt to copy the string into the place returned by the what() member function. If that operation fails (i.e. an exception is thrown) the result is that exceptions specification of the affected constructor has been violated, which results in program termination (via a call to terminate()).Originally Posted by Zach L.



LinkBack URL
About LinkBacks


