Export (0) Print
Expand All
Expand Minimize

Compiler Error C2334

unexpected token(s) preceding ': or {'; skipping apparent function body

The following sample generates C2334. This error occurs after error C2059:

// C2334.cpp
// compile with: /c
// C2059 expected
struct s1 {
   s1   {}   // C2334
   s1() {}   // OK
};

Community Additions

ADD
Show:
© 2014 Microsoft