This is the PR24163 case mentioned in http://article.gmane.org/gmane.linux.redhat.fedora.devel/157671 --- config.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/config.h b/config.h index 7825364..b0233a9 100644 --- a/config.h +++ b/config.h @@ -122,7 +122,7 @@ public: if (!isempty(s)) { T *l = new T; if (l->Parse(s)) - Add(l); + this->Add(l); else { esyslog("ERROR: error in %s, line %d", fileName, line); delete l;
Am 04.01.2012 21:04, schrieb Ville Skyttä:
This is one of the cases where it seems appropriate to have a lawyer for every C++ coder, just in case he needs to wrangle the standard...
For info, the above references 14.6.2/3 of the ISO C++ standard, which is:
In our case, I'm not sure if another solution would be to pull in the Add() method manually, by adding an using cList<T>::Add; to the class definition.
There's a similar use of this->First() in Save() that already requires the this-> in current compilers, and it can also be resolved by an using cList<T>::First; .
Cheers,
Udo