From 7fb10336669bef2a77d8971d204fa550bffafe57 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Mon, 7 Oct 2002 23:58:53 +0000 Subject: [PATCH] fixed ETI #if [SVN r15801] --- include/boost/mpl/apply.hpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/boost/mpl/apply.hpp b/include/boost/mpl/apply.hpp index e87325e..2d3c9c5 100644 --- a/include/boost/mpl/apply.hpp +++ b/include/boost/mpl/apply.hpp @@ -215,13 +215,6 @@ struct BOOST_PP_CAT(apply,i) { }; -//: workaround for ETI bug -template<> -struct BOOST_PP_CAT(apply,i) -{ - typedef BOOST_PP_CAT(apply,i) type; -}; - # elif defined(BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES) // MWCW/Borland version @@ -263,6 +256,15 @@ struct BOOST_PP_CAT(apply,i) # endif // workarounds +#if defined(BOOST_MPL_MSVC_ETI_BUG) +//: workaround for ETI bug +template<> +struct BOOST_PP_CAT(apply,i) +{ + typedef BOOST_PP_CAT(apply,i) type; +}; +#endif + #if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT) #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) template<>