S
Shailesh Humbad
Is there official terminology for these four different ways to declare
and/or define a struct?
struct tagname { ... } identifier;
struct { ... } identifier;
struct tagname { ... };
struct { ... };
Terms that have been thrown around are unnamed struct, anonymous
struct, and unnamed anonymous struct. I know that the last example
above is not legal C++, but it is supported by MSVC and gcc. I didn't
get a complete answer in microsoft.public.vc.language --
http://tinyurl.com/yqj9m (google groups)
and/or define a struct?
struct tagname { ... } identifier;
struct { ... } identifier;
struct tagname { ... };
struct { ... };
Terms that have been thrown around are unnamed struct, anonymous
struct, and unnamed anonymous struct. I know that the last example
above is not legal C++, but it is supported by MSVC and gcc. I didn't
get a complete answer in microsoft.public.vc.language --
http://tinyurl.com/yqj9m (google groups)