Re: template inheritance & this->

2005-02-01 Thread Andrew Pinski
On Feb 1, 2005, at 10:46 AM, Grigorio V. Moshkin wrote: Hi! Are the comments fully correct? I.e. ISO C++ really denies that, and that's the only reason because gcc 3.4.x doesn't compile that? (gcc 3.3.3 does). Read the release notes for 3.4.x. It says the code is invalid C++. Basically namelookup

template inheritance & this->

2005-02-01 Thread Grigorio V. Moshkin
Hi! Consider the following program: - template class Base { public: A data_a; int count; }; template class Child: public Base { public: void inc() { this->count++; this->data_a++; // ISO C++ ok, universal. Base::count++; // ISO C++ ok. /