This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Exception Specifications
- From: Ian Lance Taylor <iant at google dot com>
- To: Perry Smith <pedz at easesoftware dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: 06 Dec 2006 07:12:09 -0800
- Subject: Re: Exception Specifications
- References: <4B2BA253-38ED-423C-8DC1-21DC7DE2FFDC@easesoftware.com>
Perry Smith <pedz@easesoftware.com> writes:
> I believe I saw in some of the boost libraries that they do not use
> exception specifications because some compilers produce slower code.
Adding an exception specification to a function declaration (e.g.,
throw()) should not cause gcc to generate slower code. In a few cases
it will actually permit gcc to generate faster code.
Ian