RE: [Boost-users] Re: Guidelines for effective exception usage

Peter Dimov <pdimov@mmltd.net> wrote:
"As they stand, the copy constructors might fail via a call to unexpected. I think what is intended here is that the copy constructors can't fail." (Is it really necessary for us to quote the referenced text at each other? This is silly.)

Ben Hutchings wrote:
Yep. The difference is that the excerpts I quote are correct. ;-) Whenever throw() is used in the standard, it is intended to mean "the function does not throw", not "the function may arbitrarily call unexpected() and abort the program." Of course we all know that throw() actually means the latter, which makes it rather useless as both a documentation tool and a static nothrow checker tool; nevertheless, in the standard signatures, it is supposed to mean the former. Or so Dave says, and he wrote that portion, so he must know. ;-)

"Peter Dimov" <pdimov@mmltd.net> writes:
Actually I didn't write that portion, but Peter's right about everything else. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (3)
-
Ben Hutchings
-
David Abrahams
-
Peter Dimov