[Interest] Why does QVector2d not have copy/assignment?
Schimkowitsch Robert
Robert.Schimkowitsch at andritz.com
Wed Dec 4 09:15:03 CET 2024
I was investigating why one of my simple structs was not copyable.
Turns out that QVector2d has no copy constructor / copy assignment operator (Qt 6.7.2).
This is interesting, since it is
a) possible to construct a QVector2d from a QVector3d
b) possible to construct a QVector3d from a QVector2d
and therefore by composition possible (with some overhead) to copy a QVector2d just using constructors (i.e. without needing to know its members).
Is the omission of copy/assignment for the QVectorNd classes intentional?
Kind regards
Robert
________________________________
This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.
ANDRITZ HYDRO GmbH
Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation
Firmensitz/ Registered seat: Wien
Firmenbuchgericht/ Court of registry: Handelsgericht Wien
Firmenbuchnummer/ Company registration: FN 61833 g
DVR: 0605077
UID-Nr.: ATU14756806
Thank You
________________________________
More information about the Interest
mailing list