From c685ca0e997c1c74901fbf2d9bad51552fb60924 Mon Sep 17 00:00:00 2001 From: Yannick Verdie Date: Wed, 7 Jul 2010 18:46:18 +0000 Subject: [PATCH] Fixed bug during compilation: "error: explicit template specialization cannot have a storage class" --- modules/core/include/opencv2/core/operations.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 75afeb1481..b164e2e9fe 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -2005,14 +2005,14 @@ Scalar_<_Tp> operator / (const Scalar_<_Tp>& a, _Tp alpha) saturate_cast<_Tp>(a.val[3] / alpha)); } -template<> static inline +template static inline Scalar_ operator / (const Scalar_& a, float alpha) { float s = 1/alpha; return Scalar_(a.val[0]*s, a.val[1]*s, a.val[2]*s, a.val[3]*s); } -template<> static inline +template static inline Scalar_ operator / (const Scalar_& a, double alpha) { double s = 1/alpha;