[Interest] QFileInfoList inheritance producing warnings
Thiago Macieira
thiago.macieira at intel.com
Sat Apr 5 01:03:48 CEST 2014
Em sex 04 abr 2014, às 21:20:23, Eric Clark escreveu:
> I have worked around the warnings by using a QVector instead, but it would
> still be nice to know why QList is producing all of these warnings...
It's not QList, it's MSVC.
I assume you added an export clause to your class, right? When you do that,
MSVC tries to instantiate all methods in the class, which is what caused it to
emit that warning.
Other compilers, more compliant with the C++ standard, won't say anything.
I recommend simply silencing the warning.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list