Sha256: f3f4ce729611ab55634265da63dcff15b90d9b3466b9bac04628a2358f9a154f

Contents?: true

Size: 748 Bytes

Versions: 34

Compression:

Stored size: 748 Bytes

Contents

//  numeric_cast.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_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  // BOOST_RATIO_MPL_NUMERIC_CAST_HPP

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp