help-gplusplus
[Top][All Lists]
Advanced

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

Re: Unexpected error when using hierarchy of template classes


From: JH Trauntvein
Subject: Re: Unexpected error when using hierarchy of template classes
Date: 26 Sep 2005 13:27:11 -0700
User-agent: G2/0.2

Paul Pluzhnikov wrote:
> "JH Trauntvein" <j.trauntvein@comcast.net> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]