description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3698 |
Compiler Error C3698 |
11/04/2016 |
|
|
3c02fb08-7ba4-4637-a06f-19926cb2b5f1 |
'type' : cannot use this type as argument of 'operator'
A managed object was declared incorrectly.
The following sample generates C3698:
// C3698.cpp
// compile with: /clr
int main() {
array<int>^a = new array<int>^(20); // C3698
array<int>^a2 = gcnew array<int>(20); // OK
}