greater.hpp 699 B

123456789101112131415161718192021222324252627282930
  1. // greater.hpp
  2. //
  3. // (C) Copyright 2011 Vicente J. Botet Escriba
  4. // Use, modification and distribution are subject to the Boost Software License,
  5. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt).
  7. //
  8. #ifndef BOOST_RATIO_MPL_GREATER_HPP
  9. #define BOOST_RATIO_MPL_GREATER_HPP
  10. #include <boost/ratio/ratio.hpp>
  11. #include <boost/ratio/mpl/numeric_cast.hpp>
  12. #include <boost/mpl/greater.hpp>
  13. namespace boost {
  14. namespace mpl {
  15. template<>
  16. struct greater_impl< rational_c_tag,rational_c_tag >
  17. {
  18. template< typename R1, typename R2 > struct apply
  19. : ratio_greater<R1, R2>
  20. {
  21. };
  22. };
  23. }
  24. }
  25. #endif // BOOST_RATIO_MPL_GREATER_HPP