Sha256: 1098c0dde9eb148c63f2e5aef52fa4f643601ccf8f19908bf95dd56ef7732a4e

Contents?: true

Size: 1.72 KB

Versions: 58

Compression:

Stored size: 1.72 KB

Contents

#ifndef BOOST_MPL_AUX_NUMERIC_CAST_HPP_INCLUDED
#define BOOST_MPL_AUX_NUMERIC_CAST_HPP_INCLUDED

// Copyright Aleksey Gurtovoy 2003-2004
//
// Distributed under 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)
//
// See http://www.boost.org/libs/mpl for documentation.

// $Id$
// $Date$
// $Revision$

#include <boost/mpl/numeric_cast.hpp>
#include <boost/mpl/apply_wrap.hpp>
#include <boost/mpl/aux_/config/forwarding.hpp>

namespace boost { namespace mpl { namespace aux {

template<
      typename F
    , typename Tag1
    , typename Tag2
    >
struct cast1st_impl
{
    template< typename N1, typename N2 > struct apply
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
        : apply_wrap2< 
              F
            , typename apply_wrap1< BOOST_MPL_AUX_NUMERIC_CAST<Tag1,Tag2>,N1 >::type
            , N2
            >
    {
#else
    {
    typedef typename apply_wrap2< 
              F
            , typename apply_wrap1< BOOST_MPL_AUX_NUMERIC_CAST<Tag1,Tag2>,N1 >::type
            , N2
            >::type type;
#endif
    };
};

template<
      typename F
    , typename Tag1
    , typename Tag2
    >
struct cast2nd_impl
{
    template< typename N1, typename N2 > struct apply
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
        : apply_wrap2< 
              F
            , N1
            , typename apply_wrap1< BOOST_MPL_AUX_NUMERIC_CAST<Tag2,Tag1>,N2 >::type
            >
    {
#else
    {
        typedef typename apply_wrap2< 
              F
            , N1
            , typename apply_wrap1< BOOST_MPL_AUX_NUMERIC_CAST<Tag2,Tag1>,N2 >::type
            >::type type;
#endif
    };
};

}}}

#endif // BOOST_MPL_AUX_NUMERIC_CAST_HPP_INCLUDED

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
passenger-6.0.26 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.25 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp