From 797b82df2fdb6aaacc9364d66fd767e89010fc47 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 20 Jul 2020 14:33:23 +0100 Subject: [PATCH] Correct Lambert_w policy forwarding. --- include/boost/math/special_functions/lambert_w.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: