Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C2279

Error Message

exception specification cannot appear in a typedef declaration

Under /Za, exception specifications are not allowed in a typedef declaration.

The following sample generates C2279:

// C2279.cpp
// compile with: /Za /c
typedef int (*xx)() throw(...);   // C2279
typedef int (*xxx)();   // OK
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.