tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: g++ -pedantic on 6.0.1/amd64 fails to include xmmintrin.h

On Mon, Mar 11, 2013 at 02:01:11 +0100, Joerg Sonnenberger wrote:

> On Sat, Mar 09, 2013 at 08:54:48PM +0100, Martin Husemann wrote:
> > Scratch that - we should indeed mark most of our standard library functions
> > as "nothrow" similar to the visibility and extern C stuff in cdef.h, and
> > then explicitly exclude functions taking a function pointer.
> I disagree on this. Adding throw() in many cases costs more than it
> provides and I am not talking about the header pollution here.

As far as I understand, nothrow attribute is different and can't be
expressed in proper C++.  It says the function will not throw.  OTOH,
throw() says that compiler should make the program die (too lazy to
look up specific details in the standard) if any exception is thrown
out of that function.


Home | Main Index | Thread Index | Old Index