大家好~
程序报错。
在我的程序里
QVector<QPen> pv;
pv = other;
之后就停在了qvector.h
- template <typename T>
- QVector<T> &QVector<T>::operator=(const QVector<T> &v)
- {
- if (v.d != d) { //错误停在了这一行
- QVector<T> tmp(v);
- tmp.swap(*this);
- }
- return *this;
- }
不知道为什么,多谢大家了~另外
帮助里的这一句是什么意思?为什么有&&
QVector<T> QVector::operator=(QVector<T> && other)