From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: Cc: egcs@cygnus.com Subject: Re: static template initialization pb Date: Sun, 30 Nov 1997 14:29:00 -0000 Message-id: References: X-SW-Source: 1997-11/msg00983.html writes: > I believe the current standard should allow initialization in the > declaration, so this should work: But this only works for integral types, and definition outside the class body is still mandatory unless you define a constant. In this case, the definition must not contain an initialization: template T X::c; // = 0; -- Alexandre Oliva mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org http://www.dcc.unicamp.br/~oliva Universidade Estadual de Campinas, SP, Brasil