From: Wolfgang Bangerth Date: Tue, 1 Dec 2020 18:39:28 +0000 (-0700) Subject: Use inline functions instead of constexpr variables. X-Git-Tag: v9.3.0-rc1~822^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11293%2Fhead;p=dealii.git Use inline functions instead of constexpr variables. --- 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;