branch: upgrading_getfem_to_cpp14 commit 7e1cc903adda5e462e648ce75a8a6ecfac9fb825 Author: aa <a...@plaxis.com> Date: Mon Feb 18 15:39:48 2019 +0100
no need for special functions anymore --- src/getfem_generic_assembly_functions_and_operators.cc | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/getfem_generic_assembly_functions_and_operators.cc b/src/getfem_generic_assembly_functions_and_operators.cc index 3193528..14bb626 100644 --- a/src/getfem_generic_assembly_functions_and_operators.cc +++ b/src/getfem_generic_assembly_functions_and_operators.cc @@ -28,24 +28,11 @@ compilers */ -#if defined(_MSC_VER) && _MSC_VER < 1800 -#include <boost/math/special_functions/acosh.hpp> -#include <boost/math/special_functions/asinh.hpp> -#include <boost/math/special_functions/atanh.hpp> -#include <boost/math/special_functions/erf.hpp> -typedef double (*BoostMathFunction)(double); -BoostMathFunction const acosh = boost::math::acosh<double>; -BoostMathFunction const asinh = boost::math::asinh<double>; -BoostMathFunction const atanh = boost::math::atanh<double>; -BoostMathFunction const erf = boost::math::erf<double>; -BoostMathFunction const erfc = boost::math::erfc<double>; -#endif - namespace getfem { base_matrix& __mat_aux1() { - DEFINE_STATIC_THREAD_LOCAL(base_matrix, m); + THREAD_SAFE_STATIC base_matrix m; return m; }