On terça-feira, 22 de maio de 2012 14.33.37, Graham Labdon wrote: > Hi > I am using a QStringList and wanted to use the documented > > indexOf(const QString &str, int from = 0) > > method. > > My compiler did not like this because Q_NO_USING_KEYWORD is not defined. > I can overcome this by adding the appropriate define in the .pro file - > > DEFINES += Q_NO_USING_KEYWORD > > However, I do not fully understand the use of Q_NO_USING_KEYWORD and so am > not sure if this has any other repercussions? > > I would therefore be grateful if someone could explain the use of > Q_NO_USING_KEYWORD
That keyword exist(ed) for the use with compilers that did not understand the "using" keyword properly. The example is: struct Base { void f(); }; struct Derived : public Base { using Base::f; void f(int); }; Compilers that do not understand the using keyword are no longer supported and really doubt you have one such old beast. So, more than likely, you've mis-diagnosed the problem. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center Intel Sweden AB - Registration Number: 556189-6027 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest