Fix stack overflow on gcc with c++17 (#15343)

pull/15365/head
Zyrin 6 years ago
parent c5e9bbe4f3
commit 8ef8088686
  1. 2
      modules/core/include/opencv2/core/mat.inl.hpp

@ -1809,7 +1809,7 @@ Mat_<_Tp> Mat_<_Tp>::cross(const Mat_& m) const
template<typename _Tp> template<typename T2> inline
Mat_<_Tp>::operator Mat_<T2>() const
{
return Mat_<T2>(*this);
return Mat_<T2>(static_cast<const Mat&>(*this));
}
template<typename _Tp> inline

Loading…
Cancel
Save