I would like to create a specialisation of..
template <typename CEnemy_Ty> class CEnemyManager {};
..for a class called CTank which is a CEnemy
But by defining..
template <> class CEnemyManager<CTank>{}
..it means I have to copy+paste huge chunks of unchanged code, just to change say one or two functions.
By defining..
class CTankManager: public CEnemyManager<CTank> {};
..I think I am then able to overload the functions I want to change, which is tidier.
But I don't want the class to be CTankManager. I would like it to be distinctly a CEnemyManager<CTank> since I've got other classes which deal with this template, and this would apply to the CTank class templates too. And also a lot of code is written already so I think it's better if this code didn't know about the change..
Cheers guys!
Um, just also I wanted to say it would be perfect if I could specialise a single function from a template class somehow. That's what I started off trying to do. But it seems you can only specialise an entire class. So if I could find a way of doing this through inheritance that would be cool..