I\'m starting a new project, using Qt5 and QMAKE_CXXFLAGS += -std=c++1y
. I\'m not sure whether I should prefer QScopedPointer
or std::unique_ptr
Even though the main intention of both classes is similar,one important difference between those two which makes you to take some business decision.
QScopedPointer does not have an assignment operator. Where as std::unique_ptr has assignment operator.
If you want to be strict on your QT object/control and does not want an assignment use QScopedPointer.