12345678910111213141516171819202122232425262728293031 |
- #ifndef BOOST_RATIO_MPL_NUMERIC_CAST_HPP
- #define BOOST_RATIO_MPL_NUMERIC_CAST_HPP
- #include <boost/ratio/ratio.hpp>
- #include <boost/mpl/integral_c.hpp>
- #include <boost/ratio/mpl/rational_c_tag.hpp>
- #include <boost/mpl/numeric_cast.hpp>
- namespace boost {
- namespace mpl {
- template<> struct numeric_cast< integral_c_tag,rational_c_tag >
- {
- template< typename N > struct apply
- : ratio< N::value, 1 >
- {
- };
- };
-
- }
- }
- #endif
|