[Interest] use of deleted function errors in QList / qarraydataops.h
Thiago Macieira
thiago.macieira at intel.com
Mon Feb 27 18:14:29 CET 2023
On Sunday, 26 February 2023 23:24:43 PST Hamish Moffatt via Interest wrote:
> Is there a solution?
Remove the const in:
struct S
{
const QVector<int> v; // compiles if not const
};
If S is not copyable, then QVector can't copy it and QVector requires copying
all its elements.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230227/bc17aa85/attachment.bin>
More information about the Interest
mailing list