From: Richard Kreckel Date: Wed, 12 Dec 2007 04:57:03 +0000 (+0000) Subject: * Fix GCC 4.3 compilation issue by removing storage class of function coerce speciali... X-Git-Tag: release_1-5-0~121 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=2ba3a7625b322bdd07dfae38a9a3843ac1df1461 * Fix GCC 4.3 compilation issue by removing storage class of function coerce specializations [C++98 7.1.1-1]. --- diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index 3ca4b58c..ab6e8b80 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -408,7 +408,7 @@ static inline bool coerce(T1& dst, const T2& arg); * @sa http://www.ginac.de/pipermail/cln-list/2006-October/000248.html */ template<> -static inline bool coerce(int& dst, const cln::cl_I& arg) +inline bool coerce(int& dst, const cln::cl_I& arg) { static const cln::cl_I cl_max_int = (cln::cl_I)(long)(std::numeric_limits::max()); @@ -422,7 +422,7 @@ static inline bool coerce(int& dst, const cln::cl_I& arg) } template<> -static inline bool coerce(unsigned int& dst, const cln::cl_I& arg) +inline bool coerce(unsigned int& dst, const cln::cl_I& arg) { static const cln::cl_I cl_max_uint = (cln::cl_I)(unsigned long)(std::numeric_limits::max());