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