You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
30 lines
684 B
30 lines
684 B
// lcm.hpp |
|
// |
|
// (C) Copyright 2011 Vicente J. Botet Escriba |
|
// Use, modification and distribution are subject to the Boost Software License, |
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
|
// http://www.boost.org/LICENSE_1_0.txt). |
|
// |
|
|
|
#ifndef BOOST_RATIO_MPL_LCM_HPP |
|
#define BOOST_RATIO_MPL_LCM_HPP |
|
|
|
#include <boost/ratio/ratio.hpp> |
|
#include <boost/ratio/mpl/numeric_cast.hpp> |
|
#include <boost/ratio/detail/mpl/lcm.hpp> |
|
|
|
namespace boost { |
|
namespace mpl { |
|
|
|
template<> |
|
struct lcm_impl< rational_c_tag,rational_c_tag > |
|
{ |
|
template< typename R1, typename R2 > struct apply |
|
: ratio_lcm<R1, R2> |
|
{ |
|
}; |
|
}; |
|
} |
|
} |
|
|
|
#endif // BOOST_RATIO_MPL_LCM_HPP
|
|
|