This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: anonymous struct problems


Hi Ben,

ISO/IEC 14882 (the C++ specification) prohibits anonymous structs.

I suspect that MS and CW are not compliant.

MS and CW may consider it an extension, but it makes your code C++-ish instead of C++.

I recommend avoiding that coding practice.

--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]