[Development] Move assignment without move constructors

Konstantin Tokarev annulen at yandex.ru
Mon May 23 18:11:26 CEST 2016


Hello,

I've stumbled upon QPixmap having operator=(QPixmap&&) but missing QPixmap(QPixmap&&), however it seems like there are a lot of Qt classes in the same situation, for example:

QDir
QFileInfo
QProcessEnvironment
QStorageInfo
QUrlQuery
QMimeType
QCollatorSortKey
QCommandLineOption
QContiguousCache
QDateTime
QLocale
QRegExp
QRegularExpression, QRegularExpressionMatch, QRegularExpressionMatchIterator
QTimeZone
...

Is there any good reason for these classes to not have move constructor, or is it just an unfortunate omission?

-- 
Regards,
Konstantin



More information about the Development mailing list