Compiler Error C2334
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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
};
Show: