When a template is publicly inherited from another template, aren't publicly available public methods available?
template <int a> class Test { public: Test() {} int MyMethod1() { return a; } }; template <int b> class Another : public Test<b> { public: Another() {} void MyMethod2() { MyMethod1(); } }; int main() { Another<5> a; a.MyMethod1(); a.MyMethod2(); }
Well, GCC shit on this ... I need to miss something completely obvious (brain melt). Help?
c ++ inheritance templates
OldCoder Oct 14 '09 at 17:17 2009-10-14 17:17
source share