Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 542 Bytes

compiler-error-c3698.md

File metadata and controls

25 lines (20 loc) · 542 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3698
Compiler Error C3698
11/04/2016
C3698
C3698
3c02fb08-7ba4-4637-a06f-19926cb2b5f1

Compiler Error C3698

'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
}