- possible for fix for MSVC (#2637)

Co-authored-by: pf <pf@me>
pull/2641/head
pfeatherstone 2 years ago committed by GitHub
parent e2f53a52e9
commit a5fb8940be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,8 @@ namespace dlib
- works with C++11 onwards - works with C++11 onwards
!*/ !*/
{ {
return detail::cyl_bessel_i<std::common_type_t<R1,R2>>(nu, x); using R = std::common_type_t<R1,R2>;
return detail::cyl_bessel_i((R)nu, (R)x);
} }
template<typename R1, typename R2> template<typename R1, typename R2>
@ -30,7 +31,8 @@ namespace dlib
- works with C++11 onwards - works with C++11 onwards
!*/ !*/
{ {
return detail::cyl_bessel_j<std::common_type_t<R1,R2>>(nu, x); using R = std::common_type_t<R1,R2>;
return detail::cyl_bessel_j((R)nu, (R)x);
} }
} }

Loading…
Cancel
Save