You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any class that is intended to be copyable should override BOTH the copy constructor and the assignment operator, never only one of them. I have experienced real issues with the MSVC compiler when failing to do so.
Any class that is intended to be copyable should override BOTH the copy constructor and the assignment operator, never only one of them. I have experienced real issues with the MSVC compiler when failing to do so.
If the class is not designed to be copied, it MUST disable the operators like so:
TLDR; you override both the copy constructor and assignment operator, or disable both.
Some useful info: https://qt-project.org/doc/qt-4.8/qobject.html#Q_DISABLE_COPY
The text was updated successfully, but these errors were encountered: