File indexing completed on 2025-01-18 09:41:38
0001
0002 #ifndef BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/mpl/aux_/is_msvc_eti_arg.hpp>
0018 #include <boost/mpl/aux_/config/eti.hpp>
0019 #include <boost/mpl/aux_/config/gcc.hpp>
0020 #include <boost/mpl/aux_/config/workaround.hpp>
0021
0022 namespace boost { namespace mpl { namespace aux {
0023
0024 #if defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
0025
0026 template< bool > struct msvc_eti_base_impl
0027 {
0028 template< typename T > struct result_
0029 : T
0030 {
0031 typedef T type;
0032 };
0033 };
0034
0035 template<> struct msvc_eti_base_impl<true>
0036 {
0037 template< typename T > struct result_
0038 {
0039 typedef result_ type;
0040 typedef result_ first;
0041 typedef result_ second;
0042 typedef result_ tag;
0043 enum { value = 0 };
0044 };
0045 };
0046
0047 template< typename T > struct msvc_eti_base
0048 : msvc_eti_base_impl< is_msvc_eti_arg<T>::value >
0049 ::template result_<T>
0050 {
0051 };
0052
0053 #else
0054
0055 template< typename T > struct msvc_eti_base
0056 : T
0057 {
0058 #if BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0304))
0059 msvc_eti_base();
0060 #endif
0061 typedef T type;
0062 };
0063
0064 #endif
0065
0066 template<> struct msvc_eti_base<int>
0067 {
0068 typedef msvc_eti_base type;
0069 typedef msvc_eti_base first;
0070 typedef msvc_eti_base second;
0071 typedef msvc_eti_base tag;
0072 enum { value = 0 };
0073 };
0074
0075 }}}
0076
0077 #endif