Partager via


Erreur du compilateur C3698

'type' : ne peut pas utiliser ce type comme argument de 'operator'

Un objet managé a été déclaré incorrectement.

L’exemple suivant génère l’erreur C3698 :

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

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