$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jesse Jones (jejones_at_[hidden])
Date: 2001-03-20 19:19:40
>From: Jesse Jones <jejones_at_[hidden]>
>> >Let me suggest the following idiom as a reasonable way to report
>> >fatal runtime errors:
>> >
>> > template <typename X>
>> > void error(const X& x) throw() {
>> > throw x;
>> > }
>> >
>> >Yes, it looks silly. But it will force a call to unexpected(),
>> >which by default will terminate(), and the client can replace
>> >the default behavior via the standard set_unexpected() facility.
>>
>> How does the handler get at x?
>
>By rethrowing it and catching it.
Ahh, I missed that re-throw bit in the standard. Cute. :-)
-- Jesse