Compiler Error C3648

 

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 C3648.

this explicit override syntax requires /clr:oldSyntax

When compiling for the latest managed syntax, the compiler found explicit override syntax for previous versions.

For more information, see Explicit Overrides. For more information on the older syntax, see Explicit Overrides.

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{}  
};  

Show: