Compiler Error C3666
'constructor' : override specifier 'keyword' not allowed on a constructor
An override specifier was used on a constructor, and that is not allowed. For more information, see Override Specifiers.
Example
The following sample generates C3666.
// C3666.cpp
// compile with: /clr /c
ref struct R {
R() new {} // C3666
R(int i) {} // 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