[Interest] Qt 5.1, does QVector not support std::unique_ptr?

Mark markg85 at gmail.com
Thu Jul 4 21:50:36 CEST 2013


Hi,

Defining a QVector with an std::unique_ptr seems to work just fine. No
error, compile wise.
QVector<std::unique_ptr<QUrl>> test;

However, filling this with actual values does give errors. I'm filling
it like this:
test.append(std::unique_ptr<QUrl>(new QUrl("/some/path")));

The errors i'm getting: http://paste.kde.org/789350/

Doing the exact same with std::vector (and push_back instead of append
obviously) works just fine.

And yes, i am compiling with C++11 support:
CONFIG += c++11

x86 mingw version of Qt 5.1 released a couple of days ago.

Cheers,
Mark



More information about the Interest mailing list