Compiler Error C2728
'type' : a native array cannot contain this type
Array creation syntax was used to create an array of managed or WinRT objects. You cannot create an array of managed or WinRT objects using native array syntax.
For more information, see array.
The following sample generates C2728 and shows how to fix it:
// C2728.cpp
// compile with: /clr
int main() {
int^ arr[5]; // C2728
// try the following line instead
array<int>^arr2;
}
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir