Compiler Error C2234
'name' : arrays of references are illegal
Because pointers to references are not allowed, arrays of references are not possible.
The following sample generates C2234:
// C2234.cpp
int main() {
int i = 0, j = 0, k = 0, l = 0;
int &array[4] = {i,j,k,l}; // C2234
int array2[4] = {i,j,k,l}; // OK
}
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre