template class specialization

Feb 19, 2014 at 8:09am
hi,

i would like to write a basic general class (using template) and an other class that specialize the previous (add specific methods and use a particular type).
How can i do this without using inheritance?
And how should i split my code in cpp and hpp files?

Thanks
Feb 19, 2014 at 8:41am
Friendship, maybe. http://www.cplusplus.com/doc/tutorial/inheritance/
Else, you would copy everything from the class. With your own hand (or Cmd/Ctrl + C & V :P)
But note that not using any kind of inheritance is uselless and sense-less
Last edited on Feb 19, 2014 at 8:43am
Topic archived. No new replies allowed.