| 1 |
// Boost common_factor_ct.hpp header file ----------------------------------// |
| 2 |
|
| 3 |
// (C) Copyright John Maddock 2017. |
| 4 |
// Distributed under the Boost Software License, Version 1.0. (See |
| 5 |
// accompanying file LICENSE_1_0.txt or copy at |
| 6 |
// http://www.boost.org/LICENSE_1_0.txt) |
| 7 |
|
| 8 |
// See http://www.boost.org for updates, documentation, and revision history. |
| 9 |
|
| 10 |
#ifndef BOOST_MATH_COMMON_FACTOR_CT_HPP |
| 11 |
#define BOOST_MATH_COMMON_FACTOR_CT_HPP |
| 12 |
|
| 13 |
#ifndef BOOST_MATH_STANDALONE |
| 14 |
#include <boost/integer/common_factor_ct.hpp> |
| 15 |
#include <boost/math/tools/header_deprecated.hpp> |
| 16 |
|
| 17 |
BOOST_MATH_HEADER_DEPRECATED("<boost/integer/common_factor_ct.hpp>"); |
| 18 |
|
| 19 |
namespace boost |
| 20 |
{ |
| 21 |
namespace math |
| 22 |
{ |
| 23 |
|
| 24 |
using boost::integer::static_gcd; |
| 25 |
using boost::integer::static_lcm; |
| 26 |
using boost::integer::static_gcd_type; |
| 27 |
|
| 28 |
} // namespace math |
| 29 |
} // namespace boost |
| 30 |
#else |
| 31 |
#error Common factor is not available in standalone mode because it requires boost.integer. |
| 32 |
#endif // BOOST_MATH_STANDALONE |
| 33 |
|
| 34 |
#endif // BOOST_MATH_COMMON_FACTOR_CT_HPP |