[EMAIL PROTECTED] wrote: > The problem is because static data members need to be defined exactly > once in every translation unit.
Nope! Static data members have to be defined exactly once in the whole program. The only exception are constant integral expressions whose address is never taken: these don't need any definition. However, addresses are easily taken, e.g. by passing the value to a function taking an 'int const&' as parameter. The best bet for a constant integral expression which does not need a separate definition is using an enum. -- <mailto:[EMAIL PROTECTED]> <http://www.dietmar-kuehl.de/> <http://www.eai-systems.com> - Efficient Artificial Intelligence _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus