Take the 2-minute tour ×  I have two classes as follows in a
header file  template<size_t N> class Parent{     char array[N];
size_t i;     virtual void operator()(int i);  template<size_t
N> void Parent<N>::operator()(int i){     this->i = i;  class
Child: public Parent<16>{     virtual void operator()();  Child
has operator()() defined elsewhere in a cpp file. Whenever I
include this header file from another cpp file I can access
operator()() but operator()(int) is not even defined. Why is
this? I thought since I inherit from a specific instance of
Parent, all the methods of it should be instanced as well and
available.  share|improve this question Is that actual code? You
have a function with no return type. –  K-ballo Sep 26 '11 at
6:13 Show the exact code you're using (or a narrowed down
example of the same thing) and the compiler error. –  selalerer
Sep 26 '11 at 6:19 You could help people by indenting your
code... –  arne Sep 26 '11 at 6:40 add comment  2 Answers  up
vote 2 down vote accepted  Apar