[Interest] QScopedPointer and c++11 move semantics

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Dec 30 20:18:01 CET 2016


Il 30/12/2016 19:47, Alexander Dyagilev ha scritto:
> Hello,
> 
> https://bugreports.qt.io/browse/QTBUG-29754
> 
> states that the problem was fixed and QScopedPointer supports it now.
> 

I implemented it in 5b9006bbdba7dcab01b8e640554a7d7a4b64f76b, but then a
discussion on the mailing list caused the change to be reverted in
3f6ed5566fcfbbba4cadfade460460f8ebf06ad3. The rationale was that the
name "QScopedPointer" implies that the pointer cannot escape the scope,
and move operations whould allow that.

HTH,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161230/81406255/attachment.bin>


More information about the Interest mailing list