Commit c685ca0e authored by Yannick Verdie's avatar Yannick Verdie

Fixed bug during compilation:

 "error: explicit template specialization cannot have a storage class"
parent 3d55d481
...@@ -2005,14 +2005,14 @@ Scalar_<_Tp> operator / (const Scalar_<_Tp>& a, _Tp alpha) ...@@ -2005,14 +2005,14 @@ Scalar_<_Tp> operator / (const Scalar_<_Tp>& a, _Tp alpha)
saturate_cast<_Tp>(a.val[3] / alpha)); saturate_cast<_Tp>(a.val[3] / alpha));
} }
template<> static inline template<typename _Tp> static inline
Scalar_<float> operator / (const Scalar_<float>& a, float alpha) Scalar_<float> operator / (const Scalar_<float>& a, float alpha)
{ {
float s = 1/alpha; float s = 1/alpha;
return Scalar_<float>(a.val[0]*s, a.val[1]*s, a.val[2]*s, a.val[3]*s); return Scalar_<float>(a.val[0]*s, a.val[1]*s, a.val[2]*s, a.val[3]*s);
} }
template<> static inline template<typename _Tp> static inline
Scalar_<double> operator / (const Scalar_<double>& a, double alpha) Scalar_<double> operator / (const Scalar_<double>& a, double alpha)
{ {
double s = 1/alpha; double s = 1/alpha;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment