epoc32/include/stdapis/boost/mpl/numeric_cast.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/numeric_cast.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
     1.6 +#define BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2003-2004
     1.9 +//
    1.10 +// Distributed under the Boost Software License, Version 1.0.
    1.11 +// (See accompanying file LICENSE_1_0.txt or copy at
    1.12 +// http://www.boost.org/LICENSE_1_0.txt)
    1.13 +//
    1.14 +// See http://www.boost.org/libs/mpl for documentation.
    1.15 +
    1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/numeric_cast.hpp,v $
    1.17 +// $Date: 2005/06/26 17:14:04 $
    1.18 +// $Revision: 1.9 $
    1.19 +
    1.20 +#include <boost/mpl/aux_/config/msvc.hpp>
    1.21 +#include <boost/mpl/aux_/config/workaround.hpp>
    1.22 +
    1.23 +// agurt 21/sep/04: portability macro for the sake of MSVC 6.x-7.0;
    1.24 +// resolves conflicts with 'boost::numeric_cast' function template.
    1.25 +// use it in your own code _only_ if you care about compatibility with
    1.26 +// these outdated compilers!
    1.27 +#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) )
    1.28 +#   define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
    1.29 +#else
    1.30 +#   define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
    1.31 +#endif
    1.32 +
    1.33 +namespace boost { namespace mpl {
    1.34 +
    1.35 +// no default implementation; the definition is needed to make MSVC happy
    1.36 +
    1.37 +template< typename SourceTag, typename TargetTag > struct BOOST_MPL_AUX_NUMERIC_CAST
    1.38 +{
    1.39 +    template< typename N > struct apply;
    1.40 +};
    1.41 +
    1.42 +}}
    1.43 +
    1.44 +#endif // BOOST_MPL_NUMERIC_CAST_HPP_INCLUDED