------- Comment #25 from gdr at cs dot tamu dot edu 2007-01-30 03:53 ------- Subject: Re: std::bad_alloc::what() does not explain what happened
"pcarlini at suse dot de" <[EMAIL PROTECTED]> writes: | > However, the use of typeid is very convenient in the sense that we | > have to defined what() only once. Now, if we change that definition | > in std::exception, it means that we should revisit all other exception | > classes, such as std::runtime_error, etc. | | I see, but I don't think we have to do much, because the other exception | classes, provided in <stdexcept>, per the standard requirements are already | overriding what() to return _M_msg.c_str(). Thus, I'm coming to the conclusion | that we should consistently change std::exception too and be done with it. You're right. I agree with your analysis. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14493 ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]