1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/aux_/msvc_eti_base.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,77 @@
1.4 +
1.5 +#ifndef BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED
1.6 +#define BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2001-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_/msvc_eti_base.hpp,v $
1.17 +// $Date: 2004/11/28 01:37:05 $
1.18 +// $Revision: 1.7 $
1.19 +
1.20 +#include <boost/mpl/aux_/is_msvc_eti_arg.hpp>
1.21 +#include <boost/mpl/aux_/config/eti.hpp>
1.22 +#include <boost/mpl/aux_/config/gcc.hpp>
1.23 +#include <boost/mpl/aux_/config/workaround.hpp>
1.24 +
1.25 +namespace boost { namespace mpl { namespace aux {
1.26 +
1.27 +#if defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
1.28 +
1.29 +template< bool > struct msvc_eti_base_impl
1.30 +{
1.31 + template< typename T > struct result_
1.32 + : T
1.33 + {
1.34 + typedef T type;
1.35 + };
1.36 +};
1.37 +
1.38 +template<> struct msvc_eti_base_impl<true>
1.39 +{
1.40 + template< typename T > struct result_
1.41 + {
1.42 + typedef result_ type;
1.43 + typedef result_ first;
1.44 + typedef result_ second;
1.45 + typedef result_ tag;
1.46 + enum { value = 0 };
1.47 + };
1.48 +};
1.49 +
1.50 +template< typename T > struct msvc_eti_base
1.51 + : msvc_eti_base_impl< is_msvc_eti_arg<T>::value >
1.52 + ::template result_<T>
1.53 +{
1.54 +};
1.55 +
1.56 +#else // !BOOST_MPL_CFG_MSVC_70_ETI_BUG
1.57 +
1.58 +template< typename T > struct msvc_eti_base
1.59 + : T
1.60 +{
1.61 +#if BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0304))
1.62 + msvc_eti_base();
1.63 +#endif
1.64 + typedef T type;
1.65 +};
1.66 +
1.67 +#endif
1.68 +
1.69 +template<> struct msvc_eti_base<int>
1.70 +{
1.71 + typedef msvc_eti_base type;
1.72 + typedef msvc_eti_base first;
1.73 + typedef msvc_eti_base second;
1.74 + typedef msvc_eti_base tag;
1.75 + enum { value = 0 };
1.76 +};
1.77 +
1.78 +}}}
1.79 +
1.80 +#endif // BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED