Compiler Error C3460
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 C3460.
type': only a user-defined type can be forwarded
For more information, see Type Forwarding (C++/CLI).
The following sample creates a component.
// C3460.cpp
// compile with: /LD /clr
public ref class R {};
The following sample generates C3460.
// C3460_b.cpp // compile with: /clr /c #using "C3460.dll" [assembly:TypeForwardedTo(int::typeid)]; // C3460 [assembly:TypeForwardedTo(R::typeid)];
Show: