> -----Original Message----- > From: interest-bounces+eclark=ara....@qt-project.org [mailto:interest- > bounces+eclark=ara....@qt-project.org] On Behalf Of Thiago Macieira > Sent: Friday, April 04, 2014 6:04 PM > To: interest@qt-project.org > Subject: Re: [Interest] QFileInfoList inheritance producing warnings > > 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.
That makes a lot of sense. Sometimes MSVC can be such a pain in the you know what. Thank you for the response Thiago! > > 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 > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest