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