Exception Specifications

Ian Lance Taylor iant@google.com
Wed Dec 6 15:12:00 GMT 2006


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



More information about the Gcc-help mailing list