prevent copying in cv::Mat_<T> move assignment

This commit is contained in:
Sergiu Deitsch 2017-04-01 21:53:30 +02:00
parent 7dd3723abe
commit 4f31759965

View File

@ -1818,7 +1818,7 @@ Mat_<_Tp>::Mat_(Mat_&& m)
template<typename _Tp> inline
Mat_<_Tp>& Mat_<_Tp>::operator = (Mat_&& m)
{
Mat::operator = (m);
Mat::operator = (std::move(m));
return *this;
}