[Development] What's the status of a moved-from object?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sun May 19 14:24:14 CEST 2019


Hi,

I'm trying to find a resolution for

> https://codereview.qt-project.org/#/c/261564/

TL;DR: the patch removes the move constructor from QColorSpace, because 
that move constructor leaves the moved-from object in a partially-formed 
state.

I have nothing against that idea (on the contrary), but I am against the 
principle of introducing such inconsistencies in Qt without a previous 
agreement.

Hence, I'll ask here: what should the status of a moved-from object be? 
I'm not really interested in _how_ to achieve such status (although of 
course it's very important, and should influence the decision); I'm 
interested in what's our contract with our users.

A few datapoints for discussion are in the patch comments.

Thanks,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190519/8cd28f85/attachment.bin>


More information about the Development mailing list