common_factor_ct.hpp 1008 B

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