Skip to content

Commit

Permalink
Use explicit std namespace for hypot call
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jul 14, 2024
1 parent 49b92b2 commit 79dd4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stan/math/prim/fun/fabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inline auto fabs(T x) {

template <typename T, require_complex_t<T>* = nullptr>
inline auto fabs(T x) {
return hypot(x.real(), x.imag());
return std::hypot(x.real(), x.imag());
}

/**
Expand Down

0 comments on commit 79dd4a2

Please sign in to comment.