epoc32/include/stdapis/boost/mpl/aux_/value_wknd.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/aux_/value_wknd.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,89 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_AUX_VALUE_WKND_HPP_INCLUDED
     1.6 +#define BOOST_MPL_AUX_VALUE_WKND_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-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/aux_/value_wknd.hpp,v $
    1.17 +// $Date: 2004/12/20 17:51:57 $
    1.18 +// $Revision: 1.14 $
    1.19 +
    1.20 +#include <boost/mpl/aux_/static_cast.hpp>
    1.21 +#include <boost/mpl/aux_/config/integral.hpp>
    1.22 +#include <boost/mpl/aux_/config/eti.hpp>
    1.23 +#include <boost/mpl/aux_/config/workaround.hpp>
    1.24 +
    1.25 +#if defined(BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS) \
    1.26 +    || defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
    1.27 +
    1.28 +#   include <boost/mpl/int.hpp>
    1.29 +
    1.30 +namespace boost { namespace mpl { namespace aux {
    1.31 +template< typename C_ > struct value_wknd
    1.32 +    : C_
    1.33 +{
    1.34 +};
    1.35 +
    1.36 +#if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
    1.37 +template<> struct value_wknd<int>
    1.38 +    : int_<1>
    1.39 +{
    1.40 +    using int_<1>::value;
    1.41 +};
    1.42 +#endif
    1.43 +}}}
    1.44 +
    1.45 +
    1.46 +#if !defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
    1.47 +#   define BOOST_MPL_AUX_VALUE_WKND(C) \
    1.48 +    ::BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::aux::value_wknd< C > \
    1.49 +/**/
    1.50 +#    define BOOST_MPL_AUX_MSVC_VALUE_WKND(C) BOOST_MPL_AUX_VALUE_WKND(C)
    1.51 +#else
    1.52 +#   define BOOST_MPL_AUX_VALUE_WKND(C) C
    1.53 +#   define BOOST_MPL_AUX_MSVC_VALUE_WKND(C) \
    1.54 +    ::boost::mpl::aux::value_wknd< C > \
    1.55 +/**/
    1.56 +#endif
    1.57 +
    1.58 +#else // BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS
    1.59 +
    1.60 +#   define BOOST_MPL_AUX_VALUE_WKND(C) C
    1.61 +#   define BOOST_MPL_AUX_MSVC_VALUE_WKND(C) C
    1.62 +
    1.63 +#endif
    1.64 +
    1.65 +#if BOOST_WORKAROUND(__EDG_VERSION__, <= 238)
    1.66 +#   define BOOST_MPL_AUX_NESTED_VALUE_WKND(T, C) \
    1.67 +    BOOST_MPL_AUX_STATIC_CAST(T, C::value) \
    1.68 +/**/
    1.69 +#else
    1.70 +#   define BOOST_MPL_AUX_NESTED_VALUE_WKND(T, C) \
    1.71 +    BOOST_MPL_AUX_VALUE_WKND(C)::value \
    1.72 +/**/
    1.73 +#endif
    1.74 +
    1.75 +
    1.76 +namespace boost { namespace mpl { namespace aux {
    1.77 +
    1.78 +template< typename T > struct value_type_wknd
    1.79 +{
    1.80 +    typedef typename T::value_type type;
    1.81 +};
    1.82 +
    1.83 +#if defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
    1.84 +template<> struct value_type_wknd<int>
    1.85 +{
    1.86 +    typedef int type;
    1.87 +};
    1.88 +#endif
    1.89 +
    1.90 +}}}
    1.91 +
    1.92 +#endif // BOOST_MPL_AUX_VALUE_WKND_HPP_INCLUDED