mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
parent
e2f53a52e9
commit
a5fb8940be
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user