Compiler Error C3384
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 C3384.
type_parameter' : the value constraint and the ref constraint are mutually exclusive
You cannot constrain a generic type to both value class and ref class.
See Constraints on Generic Type Parameters (C++/CLI) for more information.
The following sample generates C3384.
// C3384.cpp
// compile with: /c /clr
generic <typename T>
where T : ref class
where T : value class // C3384
ref class List {};
Show: