- possible for fix for MSVC (#2637)

Co-authored-by: pf <pf@me>
This commit is contained in:
pfeatherstone 2022-08-09 23:38:53 +01:00 committed by GitHub
parent e2f53a52e9
commit a5fb8940be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,8 @@ namespace dlib
- 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>
@ -30,7 +31,8 @@ namespace dlib
- 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);
}
}