On Thu, Mar 27, 2003 at 11:42:29PM +0000, Angus Leeming wrote:

> template <class T>
> class B : public T
> {
> public:
>         void foo()
>         {
>         if (emergency_exit)
>                 ...
>         }
> };
> 
> >  And how would "this->" assist in telling the
> > compiler that it is from the base class (as opposed to the derived class)?
> 
> It says that it's a member. Since it's not in B, it has to be in T.

I don't get it, why does the compiler need the this-> hint at all ?

I'm sure he is right but I still don't understand it intuitively.

john

Reply via email to