Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:48:04

0001 
0002 #ifndef BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
0003 #define BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2003-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0.
0008 // (See accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/aux_/config/msvc.hpp>
0018 #include <boost/mpl/aux_/config/workaround.hpp>
0019 
0020 // agurt 21/sep/04: portability macro for the sake of MSVC 6.x-7.0;
0021 // resolves conflicts with 'boost::numeric_cast' function template.
0022 // use it in your own code _only_ if you care about compatibility with
0023 // these outdated compilers!
0024 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x570) )
0025 #   define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
0026 #else
0027 #   define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
0028 #endif
0029 
0030 namespace boost { namespace mpl {
0031 
0032 // no default implementation; the definition is needed to make MSVC happy
0033 
0034 template< typename SourceTag, typename TargetTag > struct BOOST_MPL_AUX_NUMERIC_CAST
0035 {
0036     template< typename N > struct apply;
0037 };
0038 
0039 }}
0040 
0041 #endif // BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED