Tuesday, April 7, 2020

C++ static methods in template classes

In C++, when declaring a static method in a templated class, it is mandatory that the definition of the function be placed in the .h file, not the .cpp file.


No comments:

Post a Comment