Partilhar via


Erro do compilador C3698

'tipo' : não pode usar este tipo como argumento de 'operador'

Observações

Um objeto gerenciado foi declarado incorretamente.

Example

O exemplo a seguir gera C3698:

// C3698.cpp
// compile with: /clr

int main() {
   array<int>^a = new array<int>^(20);   // C3698
   array<int>^a2 = gcnew array<int>(20);   // OK
}