Files
boost_mpl/include/boost/mpl/numeric_cast.hpp
T

42 lines
1.2 KiB
C++
Raw Normal View History

2004-09-02 15:41:37 +00:00
#ifndef BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
#define BOOST_MPL_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
2004-09-02 15:41:37 +00:00
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
2008-10-11 06:19:02 +00:00
// $Id$
2004-09-02 15:41:37 +00:00
// $Date$
// $Revision$
2004-09-21 15:02:09 +00:00
#include <boost/mpl/aux_/config/msvc.hpp>
#include <boost/mpl/aux_/config/workaround.hpp>
// agurt 21/sep/04: portability macro for the sake of MSVC 6.x-7.0;
2004-09-21 15:02:09 +00:00
// resolves conflicts with 'boost::numeric_cast' function template.
// use it in your own code _only_ if you care about compatibility with
2004-09-21 15:02:09 +00:00
// these outdated compilers!
2005-06-24 19:09:13 +00:00
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) )
2004-09-21 15:02:09 +00:00
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
#else
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
#endif
2004-09-02 15:41:37 +00:00
namespace boost { namespace mpl {
// no default implementation; the definition is needed to make MSVC happy
2004-09-21 15:02:09 +00:00
template< typename SourceTag, typename TargetTag > struct BOOST_MPL_AUX_NUMERIC_CAST
2004-09-02 15:41:37 +00:00
{
template< typename N > struct apply;
};
}}
#endif // BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED