From 7f5eb763989931d3fbd9e343ac33cca17a8a0ca0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 1 Dec 2020 11:39:28 -0700 Subject: [PATCH] Use inline functions instead of constexpr variables. --- include/deal.II/base/std_cxx17/cmath.h | 29 ++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/std_cxx17/cmath.h b/include/deal.II/base/std_cxx17/cmath.h index 756ba5ed6e..6e402ac9ac 100644 --- a/include/deal.II/base/std_cxx17/cmath.h +++ b/include/deal.II/base/std_cxx17/cmath.h @@ -28,12 +28,29 @@ DEAL_II_NAMESPACE_OPEN namespace std_cxx17 { #ifndef DEAL_II_HAVE_CXX17_BESSEL_FUNCTIONS - constexpr double (&cyl_bessel_j)(double, double) = - boost::math::cyl_bessel_j; - constexpr float (&cyl_bessel_jf)(float, float) = - boost::math::cyl_bessel_j; - constexpr long double (&cyl_bessel_jl)(long double, long double) = - boost::math::cyl_bessel_j; + + inline double + cyl_bessel_j(double x, double y) + { + return boost::math::cyl_bessel_j(x, y); + } + + + + inline float + cyl_bessel_jf(float x, float y) + { + return boost::math::cyl_bessel_j(x, y); + } + + + + inline long double + cyl_bessel_jl(long double x, long double y) + { + return boost::math::cyl_bessel_j(x, y); + } + #else using std::cyl_bessel_j; using std::cyl_bessel_jf; -- 2.39.5