diff --git a/include/boost/math/special_functions/lambert_w.hpp b/include/boost/math/special_functions/lambert_w.hpp index a0d5de215..bd40bcd88 100644 --- a/include/boost/math/special_functions/lambert_w.hpp +++ b/include/boost/math/special_functions/lambert_w.hpp @@ -1006,8 +1006,8 @@ inline T do_get_near_singularity_param(T z) template inline T get_near_singularity_param(T z, const Policy) { - typedef typename policies::precision::type precision_type; - return static_cast(get_near_singularity_param((precision_type)z)); + typedef typename policies::evaluation::type value_type; + return static_cast(do_get_near_singularity_param(static_cast(z))); } // Forward declarations: