Re: Understandin Accessing protected member variables GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sonatabar bar wrote:

> Can anyone please elaborate on this. Also to note is
> that if I used the 'this' to dereference it, I can
> overcome the error. But still want to understand why
> it does so in the below setup.

http://www.parashift.com/c++-faq-lite/templates.html#faq-35.18

This is just how name lookup works.  sTID is a nondependent name and
base classes are not considered when looking them up.

Brian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux