[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [cxx-abi-dev] __cxa_vec_new2 and deallocation functions that throw exceptions
- To: cxx-abi-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [cxx-abi-dev] __cxa_vec_new2 and deallocation functions that throw exceptions
- From: Dennis Handly <dhandly@xxxxxxxxxx>
- Date: Thu, 15 May 2003 01:14:57 -0700 (PDT)
>A function can exit either by use of "return" (including falling off the
>If a destructor catches the exception, it does not exit by throwing an
>exception. So, yes, the situation you describe is legal.
Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
Ok, so the only way to distinguish these exiting throws is to wrap the
call with: try { ... } catch(...) { std::terminate(); }
|