mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
fixes for MSVS compiler optimizer
This commit is contained in:
parent
ac37b77452
commit
e65de8d1da
@ -1746,12 +1746,13 @@ Mat_<_Tp>& Mat_<_Tp>::operator = (Mat&& m)
|
|||||||
{
|
{
|
||||||
if( DataType<_Tp>::type == m.type() )
|
if( DataType<_Tp>::type == m.type() )
|
||||||
{
|
{
|
||||||
Mat::operator = (m);
|
Mat::operator = ((Mat&&)m);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
if( DataType<_Tp>::depth == m.depth() )
|
if( DataType<_Tp>::depth == m.depth() )
|
||||||
{
|
{
|
||||||
return (*this = m.reshape(DataType<_Tp>::channels, m.dims, 0));
|
Mat::operator = ((Mat&&)m.reshape(DataType<_Tp>::channels, m.dims, 0));
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
CV_DbgAssert(DataType<_Tp>::channels == m.channels());
|
CV_DbgAssert(DataType<_Tp>::channels == m.channels());
|
||||||
m.convertTo(*this, type());
|
m.convertTo(*this, type());
|
||||||
|
Loading…
Reference in New Issue
Block a user