Static member definition of template class fails 
Author Message
 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?



Sun, 07 Apr 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Static member definition of template class fails

2. template functions in template classes declared outside the class definition

3. template template parameter and static var definition

4. template classes with static members

5. static data member of template class

6. Initialization of static data member of template class

7. template classes with static members

8. Static member variables of template class

9. static template class member variable in DLL

10. static members in template class across DLL's

11. template classes with static members

12. Using a class as a template argument inside the definition of the class

 

 
Powered by phpBB® Forum Software