I do know that template class\'s definition and implementation should be on the same header file. But I was taught a bit differently at school.
I\'ll have the templa
"Is this bad programming practice?"
In general not and it's a very common technique. But the problem is the .cpp file extension, that would affect many IDEs and build systems to consider it as a regular source file. More commonly used extensions are .tcc, .tpc.
.cpp
.tcc
.tpc