[Bug libstdc++/14493] std::bad_alloc::what() does not explain what happened

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 30 00:54:00 GMT 2007



------- Comment #19 from pinskia at gcc dot gnu dot org  2007-01-30 00:54 -------
(In reply to comment #18)
> Implementing the really trivial solution of providing what() members returning
> "std::bad_alloc", "std::bad_cast", "std::bad_typeid", and "std::bad_exception".
I don't think that is the correct solution as if you subclass these functions,
you get the incorrect result.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14493



More information about the Gcc-bugs mailing list