Note
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier les répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de changer de répertoire.
La création de tableau managé ou WinRT doit posséder une taille de tableau ou un initialiseur de tableau
Remarques
Un tableau managé ou WinRT était incorrect. Pour plus d'informations, consultez tableau.
Exemple :
L’exemple suivant génère l’erreur C2748 et montre comment la corriger :
// C2748.cpp
// compile with: /clr
int main() {
array<int> ^p1 = new array<int>(); // C2748
// try the following line instead
array<int> ^p2 = new array<int>(2);
}