Sha256: 1c5f42bdabba2cfd0d68166e17022337086950c7a79a43683c487bdc9ab51b86

Contents?: true

Size: 1.84 KB

Versions: 84

Compression:

Stored size: 1.84 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: numeric_cast_utils.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
// $Date: 2008-10-10 23:19:02 -0700 (Fri, 10 Oct 2008) $
// $Revision: 49267 $

#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

84 entries across 84 versions & 1 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-4.0.60 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.18 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.17 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.16 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.15 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.14 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.13 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.11 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.10 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.9 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.8 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.7 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.6 ext/boost/mpl/aux_/numeric_cast_utils.hpp
passenger-5.0.5 ext/boost/mpl/aux_/numeric_cast_utils.hpp