Re: Templates + Inheritance problem

2007-07-19 Thread Ling-hua Tseng
On Thu, 19 Jul 2007 23:38:50 +0800, Ling-hua Tseng wrote > It's not a bug. > When you are using class template, the `total template > specialization' may be wrote by someone. Since the C++ compiler > expect anything, you should to use one of the following 3 solutions: ^^^ cannot exp

Re: Templates + Inheritance problem

2007-07-19 Thread Ling-hua Tseng
It's not a bug. When you are using class template, the `total template specialization' may be wrote by someone. Since the C++ compiler expect anything, you should to use one of the following 3 solutions: 1. use `this->Baz()' instead of `Baz()'. 2. write `using Foo::Baz();' in the derived clas

Templates + Inheritance problem

2007-07-19 Thread John Gateley
Hi, I've found strange behavior, possibly a bug, but more likely a problem with my understanding. Here's the code: template class Foo { public: void Baz() {} }; template class Bar : public Foo { public: void Bum() { Baz(); } }; (I know it doesn't make much sense, I reduced the pro