Compiler Error C3464
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 C3464.
type' a nested type cannot be forwarded
Type forwarding does not work on nested types.
For more information, see Type Forwarding (C++/CLI).
The following sample creates a component.
// C3464.cpp
// compile with: /LD /clr
public ref class R {
public:
ref class N {};
};
The following sample generates C3464.
// C3464_b.cpp // compile with: /clr /c #using "C3464.dll" [assembly:TypeForwardedTo(R::N::typeid)]; // C3464 [assembly:TypeForwardedTo(R::typeid)]; // OK
Show: