is_evenly_divisible_by.hpp 960 B

12345678910111213141516171819202122232425262728293031
  1. // is_evenly_divisible_by.hpp --------------------------------------------------------------//
  2. // Copyright 2009-2010 Vicente J. Botet Escriba
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. #ifndef BOOST_CHRONO_DETAIL_IS_EVENLY_DIVISIBLE_BY_HPP
  6. #define BOOST_CHRONO_DETAIL_IS_EVENLY_DIVISIBLE_BY_HPP
  7. #include <boost/chrono/config.hpp>
  8. #include <boost/mpl/logical.hpp>
  9. #include <boost/ratio/detail/overflow_helpers.hpp>
  10. namespace boost {
  11. namespace chrono {
  12. namespace chrono_detail {
  13. // template <class R1, class R2>
  14. // struct is_evenly_divisible_by : public boost::mpl::bool_ < ratio_divide<R1, R2>::type::den == 1 >
  15. // {};
  16. template <class R1, class R2>
  17. struct is_evenly_divisible_by : public boost::ratio_detail::is_evenly_divisible_by<R1, R2>
  18. {};
  19. } // namespace chrono_detail
  20. } // namespace detail
  21. } // namespace chrono
  22. #endif // BOOST_CHRONO_DETAIL_IS_EVENLY_DIVISIBLE_BY_HPP