Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
gcnew constraint is missing empty parameter list '()'
The gcnew
special constraint was specified without the empty parameter list. See Constraints on Generic Type Parameters (C++/CLI) for more information.
Example
The following sample generates C3869.
// C3869.cpp
// compile with: /c /clr
using namespace System;
generic <typename T>
where T : gcnew // C3869
// try the following line instead
// where T : gcnew()
ref class List {};