Template inheritance: X is not a template

Posted by user2923917 on Stack Overflow See other posts from Stack Overflow or by user2923917
Published on 2013-10-26T21:47:30Z Indexed on 2013/10/26 21:53 UTC
Read the original article Hit count: 221

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates