summaryrefslogtreecommitdiff
path: root/boost/chrono/io_v1/chrono_io.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/chrono/io_v1/chrono_io.hpp')
-rw-r--r--boost/chrono/io_v1/chrono_io.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/chrono/io_v1/chrono_io.hpp b/boost/chrono/io_v1/chrono_io.hpp
index 1a7e832..12d9f54 100644
--- a/boost/chrono/io_v1/chrono_io.hpp
+++ b/boost/chrono/io_v1/chrono_io.hpp
@@ -22,7 +22,7 @@
#include <boost/type_traits/is_scalar.hpp>
#include <boost/type_traits/is_signed.hpp>
#include <boost/mpl/if.hpp>
-#include <boost/math/common_factor_rt.hpp>
+#include <boost/integer/common_factor_rt.hpp>
#include <boost/chrono/detail/scan_keyword.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp>
@@ -241,7 +241,7 @@ reduce(intermediate_type& r, unsigned long long& den, std::ios_base::iostate& er
typedef typename common_type<intermediate_type, unsigned long long>::type common_type_t;
// Reduce r * num / den
- common_type_t t = math::gcd<common_type_t>(common_type_t(r), common_type_t(den));
+ common_type_t t = integer::gcd<common_type_t>(common_type_t(r), common_type_t(den));
r /= t;
den /= t;
if (den != 1)
@@ -504,8 +504,8 @@ operator>>(std::basic_istream<CharT, Traits>& is, duration<Rep, Period>& d)
// unit is num/den
// r should be multiplied by (num/den) / Period
// Reduce (num/den) / Period to lowest terms
- unsigned long long gcd_n1_n2 = math::gcd<unsigned long long>(num, Period::num);
- unsigned long long gcd_d1_d2 = math::gcd<unsigned long long>(den, Period::den);
+ unsigned long long gcd_n1_n2 = integer::gcd<unsigned long long>(num, Period::num);
+ unsigned long long gcd_d1_d2 = integer::gcd<unsigned long long>(den, Period::den);
num /= gcd_n1_n2;
den /= gcd_d1_d2;
unsigned long long n2 = Period::num / gcd_n1_n2;