Understandin Accessing protected member variables GCC
Brian Dessent
brian@dessent.net
Mon Feb 26 15:33:00 GMT 2007
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
More information about the Gcc-help
mailing list