This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Exception Specifications


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]