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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for