Compiler Error C2437
'identifier' : already initialized
An object can be initialized only once.
The following sample generates C2437:
// C2437.cpp
// compile with: /c
class A {
public:
A(int i) {}
};
class B : A {
B() : A(1), A(2) {} // C2437
B() : A(1) {} // 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