31 lines · plain
1// (C) Copyright John Maddock 2017.2 3// Use, modification and distribution are subject to the4// Boost Software License, Version 1.0. (See accompanying file5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)6 7#ifndef BOOST_MATH_COMMON_FACTOR_RT_HPP8#define BOOST_MATH_COMMON_FACTOR_RT_HPP9 10#ifndef BOOST_MATH_STANDALONE11#include <boost/integer/common_factor_rt.hpp>12#include <boost/math/tools/header_deprecated.hpp>13 14BOOST_MATH_HEADER_DEPRECATED("<boost/integer/common_factor_rt.hpp>");15 16namespace boost {17 namespace math {18 using boost::integer::gcd;19 using boost::integer::lcm;20 using boost::integer::gcd_range;21 using boost::integer::lcm_range;22 using boost::integer::gcd_evaluator;23 using boost::integer::lcm_evaluator;24 }25}26#else27#error Common factor is not available in standalone mode because it requires boost.integer.28#endif // BOOST_MATH_STANDALONE29 30#endif // BOOST_MATH_COMMON_FACTOR_RT_HPP31