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