Compiler Error C3384
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C3384

Error Message

'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 for more information.

Example

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:
© 2016 Microsoft