From 232a64424f2bf5e2dff9c252f443c48aaad122ef Mon Sep 17 00:00:00 2001 From: "Jeremy W. Murphy" Date: Tue, 5 Apr 2016 09:41:59 +1000 Subject: [PATCH] Use unqualified swap to allow ADL. --- include/boost/math/common_factor_rt.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/math/common_factor_rt.hpp b/include/boost/math/common_factor_rt.hpp index 9191158fa..3de917a92 100644 --- a/include/boost/math/common_factor_rt.hpp +++ b/include/boost/math/common_factor_rt.hpp @@ -83,12 +83,12 @@ namespace detail { while (b != EuclideanDomain(0)) { - a = a % b; - std::swap(a, b); + a %= b; + swap(a, b); } return a; } -} +} // namespace detail template