This is the mail archive of the
mailing list for the libstdc++ project.
Re: How GCC handle exceptions under Linux?
On Tue, Dec 11, 2012 at 10:25 AM, Borneq <email@example.com> wrote:
> Jonathan Wakely-4 wrote
> No. Hardware exceptions and signals are not mapped to C++ exceptions.
> C++ exceptions are designed for error handling, not for handling
> asynchronous events like signals.
> Is impossible to write safe code handling hardware exceptions by try..catch?
On GNU/Linux and Solaris and possibly other systems, you can write a
signal handler that uses throw.