I have a template class with a static member variable. However, when compiling, I get the following error:
C2371: 'S_TYPES' : redefinition; different basic types
Here's the class in question:
// This all is in Type.h
template<class T>
class Type
{
private:
static std::map<unsigned int, Type<T>> S_TYPES;
};
template<class T>
std::map<unsigned int, Type<T>> Type<T>::S_TYPES;
How do I fix the error here?