From 79dd4a2cb6a14890036f259506f9d648ad3f264d Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 14 Jul 2024 16:10:25 +0300 Subject: [PATCH] Use explicit std namespace for hypot call --- stan/math/prim/fun/fabs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stan/math/prim/fun/fabs.hpp b/stan/math/prim/fun/fabs.hpp index 193e154b736..71a1d521656 100644 --- a/stan/math/prim/fun/fabs.hpp +++ b/stan/math/prim/fun/fabs.hpp @@ -17,7 +17,7 @@ inline auto fabs(T x) { template * = nullptr> inline auto fabs(T x) { - return hypot(x.real(), x.imag()); + return std::hypot(x.real(), x.imag()); } /**