Compiler Error C2351
obsolete C++ constructor initialization syntax
In a new-style initialization list for a constructor, you must explicitly name each direct base class, even if it is the only base class.
The following sample generates C2351:
// C2351.cpp
// compile with: /c
class B {
public:
B() : () {} // C2351
B() {} // 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