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