From a5fb8940be29bc4e532bfdcc17d229fa1dc3298d Mon Sep 17 00:00:00 2001 From: pfeatherstone <45853521+pfeatherstone@users.noreply.github.com> Date: Tue, 9 Aug 2022 23:38:53 +0100 Subject: [PATCH] - possible for fix for MSVC (#2637) Co-authored-by: pf --- dlib/math/bessel.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlib/math/bessel.h b/dlib/math/bessel.h index cacb3b5ad..f8ff24e4c 100644 --- a/dlib/math/bessel.h +++ b/dlib/math/bessel.h @@ -17,7 +17,8 @@ namespace dlib - works with C++11 onwards !*/ { - return detail::cyl_bessel_i>(nu, x); + using R = std::common_type_t; + return detail::cyl_bessel_i((R)nu, (R)x); } template @@ -30,7 +31,8 @@ namespace dlib - works with C++11 onwards !*/ { - return detail::cyl_bessel_j>(nu, x); + using R = std::common_type_t; + return detail::cyl_bessel_j((R)nu, (R)x); } }