Compiler Error C3769
'type' : a nested class cannot have the same name as the immediately enclosing class
A nested class cannot have the same name as the immediately enclosing class.
Example
The following sample generates C3769.
// C3769.cpp
// compile with: /c
class x {
class x {}; // C3769
class y {
class x{}; // OK
};
};
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