From: Stefan S. <se...@sy...> - 2004-07-21 11:20:59
|
Christophe Avoinne wrote: > Forward declaration is not necessary with pointer (always a 4-byte unsigned > integer for ia32), but you must use a tag name for the structure to resolve > this lack of information : > > typedef struct Link_s { > struct Link_s *next; > int value; > } Link; interesting. I wasn't sure how standard compliant such a construct is (knowing that it comes from C...). Anyways, the important point here seems to be that the 'struct' tag serves the same purpose as the 'typename' keyword, i.e. it provides a hint to the parser to disambiguate the expression. Regards, Stefan |