Compiler Error C3085
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3085.
constructor': a constructor cannot be 'keyword'
A constructor was declared incorrectly. See Override Specifiers for more information.
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
};
Show: