Maett wrote: [snip]
But I would like foo1 to be static to avoid it being a global symbol.
(I have a tool which generates c++ code out of data structure definitions, and there are quite a few such definitions, which would lead to manymany global symbols.
[snip]
This entire discussion is off-topic here, since it is not a g++ issue.
Post additional messages on this topic to the comp.lang.c++ newsgroup.
Does your 'tool' make all of the struct data members 'static'? That would prevent you from having multiple copies of a given structure that actually does anything useful - since all of the copies would be refering to the same data items (e.g. 5 different instances of foo1Class will all be accessing and updating the single foo1Class::n).
Regards, Larry
-- Anti-spam address, change each 'X' to '.' to reply directly. _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
