From 8f6f9c3e58cfd64ab8d34cdf83cdcb636b4f7608 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Sat, 16 Nov 2013 20:14:01 +0400 Subject: [PATCH] compilation for VS2008 --- modules/core/include/opencv2/core/mat.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 4cb12cc..8ddc16e 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -1075,7 +1075,9 @@ template template inline Mat_<_Tp>::operator Vec template inline Mat_<_Tp>::operator Matx::channel_type, m, n>() const { CV_Assert(n % DataType<_Tp>::channels == 0); - return this->Mat::operator Matx::channel_type, m, n>(); + + Matx::channel_type, m, n> res = this->Mat::operator Matx::channel_type, m, n>(); + return res; } template inline void -- 2.7.4