[Development] unified data model API in QtCore => thin wrapper proposal
Thiago Macieira
thiago.macieira at intel.com
Sat Oct 6 00:47:42 CEST 2018
On Friday, 5 October 2018 08:35:10 PDT Thiago Macieira wrote:
> Cons:
> Suppresses move construction as in
> QCborValue v = array[n];
> this still compiles, but passes through the copy constructor, not the move
> one. We cana add an extra move constructor for const QCborValue && if
> necessary.
Never mind, you can't move from the const rvalue reference. It needs to be
modifiable.
So, again: should we have the const in the return types at the expense of
losing the move semantic?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list