RE: "not delcared in this scope" when subclassing a template

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

 



Hi Alexei,

C++ (which GCC's g++ tries to be compliant)  does not know if the code is referring to Base's elems, or some global elems.

So it gives an error, as required per C++ ISO 14882.

You can get around that error by doing:
this->elems

That will tell GCC's g++ where to look for the elems identifier.

HTH,
--Eljay


[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