Isn't this legal code to initialize a static member of a template
class?
template <class T>
class TemplatedClassT
{
static int staticMember_;
};
class A
{
//....
};
//...
//...initialize
//...
int TemplatedClassT<A>::staticMember_ = 0;
GCC 3.4.1 is rejecting it. But, how else could
TemplatedClassT<A>::staticMember_ be initialized?
Greg Silverman
Northrop Grumman
San Jose, CA
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]