
21 Feb
2006
21 Feb
'06
4:05 p.m.
Beman Dawes <bdawes@acm.org> writes:
Peter Dimov wrote:
1. system_error 'obviously' needs to derive from std::exception, but whether it needs to derive from std::runtime_error isn't clear.
Hum... I assumed that a system_error was 'obviously' a runtime error, and thus should be derived from std::runtime_error. What am I missing?
std::runtime_error loses meaning pretty quickly when you look at it closely, since everything reported by an exception is a runtime error, by definition :) -- Dave Abrahams Boost Consulting www.boost-consulting.com