OONumerics User :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2006-03-27 15:26:06


Hari Sundar wrote:

> class C : public B<C>
> {
> inline float SomeFunc(int i, int j, int k) {
> return some_data[k*x*y + j*x + i];
> }
> }
>
> When I use gcc to compile this .. I get errors of the sort ..
>
> error: 'some_data' was not declared in this scope
> error: 'x' was not declared in this scope
> error: 'y' was not declared in this scope

This is because these come from a dependent base class, so you
have to qualify the access, for example by prefixing these members
with 'this->'.

HTH,
                Stefan