Edit

Share via


Compiler Error C3648

this explicit override syntax requires /clr:oldSyntax

When compiling for the latest managed syntax, the compiler found explicit override syntax for previous versions that is no longer supported.

For more information, see Explicit Overrides.

Example

The following sample generates C3648:

// C3648.cpp
// compile with: /clr
public interface struct I {
   void f();
};

public ref struct R : I {
   virtual void I::f() {}   // C3648
   // try the following line instead
   // virtual void f() = I::f{}
};