[Interest] QScopedPointer and c++11 move semantics

Alexander Dyagilev alervdvcw at gmail.com
Fri Dec 30 19:47:15 CET 2016


Hello,

https://bugreports.qt.io/browse/QTBUG-29754

states that the problem was fixed and QScopedPointer supports it now.

But it does not.

std::move does not compile.
error: C2248: 
'QScopedPointer<WebPagesIterator,QScopedPointerDeleter<T>>::QScopedPointer': 
cannot access private member declared in class 
'QScopedPointer<WebPagesIterator,QScopedPointerDeleter<T>>'
with
[
T=WebPagesIterator
]

Visual C++ 2015.
Both c+11 and c+14 enabled in pro files.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161230/09b45a7a/attachment.html>


More information about the Interest mailing list