williamr@2: williamr@2: #ifndef BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED williamr@2: #define BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED williamr@2: williamr@2: // Copyright Aleksey Gurtovoy 2003-2004 williamr@2: // williamr@2: // Distributed under the Boost Software License, Version 1.0. williamr@2: // (See accompanying file LICENSE_1_0.txt or copy at williamr@2: // http://www.boost.org/LICENSE_1_0.txt) williamr@2: // williamr@2: // See http://www.boost.org/libs/mpl for documentation. williamr@2: williamr@2: // $Source: /cvsroot/boost/boost/boost/mpl/numeric_cast.hpp,v $ williamr@2: // $Date: 2005/06/26 17:14:04 $ williamr@2: // $Revision: 1.9 $ williamr@2: williamr@2: #include <boost/mpl/aux_/config/msvc.hpp> williamr@2: #include <boost/mpl/aux_/config/workaround.hpp> williamr@2: williamr@2: // agurt 21/sep/04: portability macro for the sake of MSVC 6.x-7.0; williamr@2: // resolves conflicts with 'boost::numeric_cast' function template. williamr@2: // use it in your own code _only_ if you care about compatibility with williamr@2: // these outdated compilers! williamr@2: #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) ) williamr@2: # define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_ williamr@2: #else williamr@2: # define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast williamr@2: #endif williamr@2: williamr@2: namespace boost { namespace mpl { williamr@2: williamr@2: // no default implementation; the definition is needed to make MSVC happy williamr@2: williamr@2: template< typename SourceTag, typename TargetTag > struct BOOST_MPL_AUX_NUMERIC_CAST williamr@2: { williamr@2: template< typename N > struct apply; williamr@2: }; williamr@2: williamr@2: }} williamr@2: williamr@2: #endif // BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED