Hey Everybody. I have a question. I have a code like this in my .cpp file of the class:
In my .h file I have everything set up correctly for the template class. However, when I compile it I get this error:
template <typename T>
myClass.cpp: error: no ‚int myClass<T>::getNumber()‚ member function declared in class ‚myClass<T>‚
myClass.cpp: error: template definition of non-template ‚int myClass<T>::getNumber()‚
I do know however, that I DO have the getNumber in my .h file. Any ideas?