From 8ef80886866a36d257566b8185b071414bd68501 Mon Sep 17 00:00:00 2001 From: Zyrin Date: Wed, 21 Aug 2019 10:57:03 +0200 Subject: [PATCH] Fix stack overflow on gcc with c++17 (#15343) --- modules/core/include/opencv2/core/mat.inl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/mat.inl.hpp b/modules/core/include/opencv2/core/mat.inl.hpp index a2e7923b39..d74b6e67b2 100644 --- a/modules/core/include/opencv2/core/mat.inl.hpp +++ b/modules/core/include/opencv2/core/mat.inl.hpp @@ -1809,7 +1809,7 @@ Mat_<_Tp> Mat_<_Tp>::cross(const Mat_& m) const template template inline Mat_<_Tp>::operator Mat_() const { - return Mat_(*this); + return Mat_(static_cast(*this)); } template inline