mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
Merge pull request #8506 from sergiud:mat-move-assignment-dont-copy
This commit is contained in:
commit
bbdd8ba078
@ -1818,7 +1818,7 @@ Mat_<_Tp>::Mat_(Mat_&& m)
|
|||||||
template<typename _Tp> inline
|
template<typename _Tp> inline
|
||||||
Mat_<_Tp>& Mat_<_Tp>::operator = (Mat_&& m)
|
Mat_<_Tp>& Mat_<_Tp>::operator = (Mat_&& m)
|
||||||
{
|
{
|
||||||
Mat::operator = (m);
|
Mat::operator = (std::move(m));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user