Article View: comp.std.c++
Article #2768Re: Exceptions in destructors
From: Herb Sutter
Date: Tue, 28 Nov 1995 18:20
Date: Tue, 28 Nov 1995 18:20
28 lines
1764 bytes
1764 bytes
In article <9533212.28401@mulga.cs.mu.OZ.AU>, fjh@munta.cs.mu.OZ.AU (Fergus Henderson) wrote: >> >>if unexpected re-throws the same exception [...] > >No, neither of those cases holds. The reason that the guarnatee holds >is that if an unexpected handler does throw an unexpected exception, >the unexpected() function which called the handler will replace that >exception with a `bad_exception' exception. IOW, in an unexpected handler, "throw;" is the same as "throw bad_exception;"? If true, this answers my concerns about Cline's/Lomow's recommendation. Where is this documented? Thanks, Herb ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Herb Sutter 2228 Urwin, Ste 102 voice (416) 618-0184 Connected Object Solutions Oakville ON Canada L6L 2T2 fax (905) 847-6019 --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<49fjm8$jrl@steel.interlog.com>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<Pine.SGI.3.91-heb-2.02.951114164854.2393A-100000@arava> <48s8fa$aq@sunsystem5.informatik.tu-muenchen.de> <9532523.1824@mulga.cs.mu.OZ.AU> <494oog$hmf@gabi.gabi-soft.fr> <495ls8$17o@steel.interlog.com> <49bvoc$o30@gabi.gabi-soft.fr> <9533212.28401@mulga.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: herbs@interlog.com (Herb Sutter) Newsgroups: comp.std.c++ Subject: Re: Exceptions in destructors Date: 28 Nov 1995 18:20:15 GMT Organization: Connected Object Solutions (div of Daystar Software Systems Design Inc.) Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <49fjm8$jrl@steel.interlog.com> References: <Pine.SGI.3.91-heb-2.02.951114164854.2393A-100000@arava> <48s8fa$aq@sunsystem5.informatik.tu-muenchen.de> <9532523.1824@mulga.cs.mu.OZ.AU> <494oog$hmf@gabi.gabi-soft.fr> <495ls8$17o@steel.interlog.com> <49bvoc$o30@gabi.gabi-soft.fr> <9533212.28401@mulga.cs.mu.OZ.AU> NNTP-Posting-Host: physics2.berkeley.edu