Exception::Cxx - Switch to ANSI C++ exceptions
use Exception::Cxx;
This module arranges for perl to use ANSI C++ exceptions (instead of setjmp/longjmp). The reason you might want this is for integration with 3rd party libraries that use C++ exceptions and cannot switch back to longjmp.
setjmp
longjmp
sigsetjmp saves more state than catch {}. In C++, sigprocmask & priocntl are not saved or restored.
sigsetjmp
sigprocmask
priocntl
C++ exceptions will not work with the CC perl compiler backend. IMO, this is a bug in the backend.
If you have suggestions or more hints files, please contact me at bitset@mindspring.com. Thanks!
Copyright © 1997-1999 Joshua Nathaniel Pritikin. All rights reserved.
This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '©'. Assuming CP1252
To install Exception::Cxx, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Exception::Cxx
CPAN shell
perl -MCPAN -e shell install Exception::Cxx
For more information on module installation, please visit the detailed CPAN module installation guide.