
Static member definition of template class fails
Thanks for the help.
The problem was complicated because in reality variable 'val' was a class
and not an 'int', so it was necessary to call the constructor. The suggested
workaround doesn't work in this case. However, I made the variable a pointer
and initialised it with a function call which allocated an instance and
called the constructor.
A bit of a phaf. If anyone from the Microsoft compiler team are reading
this, any chance of a fix?