Template inheritance: X is not a template
- by user2923917
I am trying to build a inheritance-structure which looks like:
Base - template Grandpa - template Father
class Base {};
template <int x> class Grandpa: public Base {};
template <int x>
class Father: public Grandpa<x> {};
However, the compiler complains when compiling Father, that Grandpa is not a template.
I guess it is just some synthatic issue, however everything I've tried so far led to even more compiler complaints ;)
Any idea whats wrong?