Compiler Error C3085
'constructor': a constructor cannot be 'keyword'
A constructor was declared incorrectly. See Override Specifiers for more information.
Example
The following sample generates C3085.
// C3085.cpp
// compile with: /c /clr
ref struct S {
S() abstract; // C3085
S(S%) abstract; // C3085
};
ref struct T {
T() sealed {} // C3085
T(T%) sealed {} // C3085
};
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