[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: posix_memalign conflict between /usr/include files
On Sat, Mar 08, 2014 at 05:11:03PM +0000, David Laight wrote:
> I remember a discussion about this before.
> But I can't remember what the throw() is about - especially on
> a function with a C interface.
The "throw()" statement is never to be used in good code - it was a
well intended, but completely stupid comitee invention.
The "throw()" declares "this function does not throw any exceptions", which
sounds good at first look - but the details in the standard force the
compiler to generate a catch block around it and abort the program if
it would ever throw an exception (which our C library functions and system
calls never do, of course).
Main Index |
Thread Index |