mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Fix stack overflow on gcc with c++17 (#15343)
This commit is contained in:
parent
c5e9bbe4f3
commit
8ef8088686
@ -1809,7 +1809,7 @@ Mat_<_Tp> Mat_<_Tp>::cross(const Mat_& m) const
|
|||||||
template<typename _Tp> template<typename T2> inline
|
template<typename _Tp> template<typename T2> inline
|
||||||
Mat_<_Tp>::operator Mat_<T2>() const
|
Mat_<_Tp>::operator Mat_<T2>() const
|
||||||
{
|
{
|
||||||
return Mat_<T2>(*this);
|
return Mat_<T2>(static_cast<const Mat&>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename _Tp> inline
|
template<typename _Tp> inline
|
||||||
|
Loading…
Reference in New Issue
Block a user