JH Trauntvein wrote:
Paul Pluzhnikov wrote:
"JH Trauntvein" <[EMAIL PROTECTED]> writes:
test.cpp:13: error: object missing in reference to 'Value::storage'
This looks like a gcc bug (but you need a language lawyer to say
for sure). Workarounds:
{ out << this->Value::storage; } or
{ out << this->storage; }
Thanks,
It turns out that I can invoke a member function of the base class
which I had already defined called get_storage(). I didn't think to
try using "this".
Regards,
Jon Trauntvein
This is very likely a bug in gcc's two-stage name lookup, as storage is
_definitely_ not a dependant name. this->storage (preffered over
this->Value::storage to enable propper name lookup) disables
non-dependant name lookup for storage by making it dependant (this is a
dependant name.)
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus