
29 Jun
2006
29 Jun
'06
3:45 p.m.
<Oliver.Kowalke@qimonda.com> wrote in message news:5D4F031442F5CB489CF88277DDBACCDD054D060B@drsse401.eu.infineon.com...
Hi, shouldn't system_error::const char * what() const contain throw ()?
Good question. I don't know the answer. The standard (for std::exception, which is the eventual base class) says: virtual const char* what() const throw(); system_error::what catches exceptions, so it never throws. I afraid I still don't know the rule as to when you need to provide a throw() specifier rather than just documenting that a function never throws. Is there guidance from exception experts? --Beman