sl@0
|
1 |
|
sl@0
|
2 |
#ifndef BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
|
sl@0
|
3 |
#define BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
|
sl@0
|
4 |
|
sl@0
|
5 |
// Copyright Aleksey Gurtovoy 2003-2004
|
sl@0
|
6 |
//
|
sl@0
|
7 |
// Distributed under the Boost Software License, Version 1.0.
|
sl@0
|
8 |
// (See accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
9 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// See http://www.boost.org/libs/mpl for documentation.
|
sl@0
|
12 |
|
sl@0
|
13 |
// $Source: /cvsroot/boost/boost/boost/mpl/numeric_cast.hpp,v $
|
sl@0
|
14 |
// $Date: 2005/06/26 17:14:04 $
|
sl@0
|
15 |
// $Revision: 1.9 $
|
sl@0
|
16 |
|
sl@0
|
17 |
#include <boost/mpl/aux_/config/msvc.hpp>
|
sl@0
|
18 |
#include <boost/mpl/aux_/config/workaround.hpp>
|
sl@0
|
19 |
|
sl@0
|
20 |
// agurt 21/sep/04: portability macro for the sake of MSVC 6.x-7.0;
|
sl@0
|
21 |
// resolves conflicts with 'boost::numeric_cast' function template.
|
sl@0
|
22 |
// use it in your own code _only_ if you care about compatibility with
|
sl@0
|
23 |
// these outdated compilers!
|
sl@0
|
24 |
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) )
|
sl@0
|
25 |
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
|
sl@0
|
26 |
#else
|
sl@0
|
27 |
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
|
sl@0
|
28 |
#endif
|
sl@0
|
29 |
|
sl@0
|
30 |
namespace boost { namespace mpl {
|
sl@0
|
31 |
|
sl@0
|
32 |
// no default implementation; the definition is needed to make MSVC happy
|
sl@0
|
33 |
|
sl@0
|
34 |
template< typename SourceTag, typename TargetTag > struct BOOST_MPL_AUX_NUMERIC_CAST
|
sl@0
|
35 |
{
|
sl@0
|
36 |
template< typename N > struct apply;
|
sl@0
|
37 |
};
|
sl@0
|
38 |
|
sl@0
|
39 |
}}
|
sl@0
|
40 |
|
sl@0
|
41 |
#endif // BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
|