From fed559b40965ed15f491ae0f4776c67a6c327242 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Fri, 10 Sep 2004 11:18:48 +0000 Subject: [PATCH] MWCW workaround [SVN r24996] --- include/boost/mpl/vector/aux_/item.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/mpl/vector/aux_/item.hpp b/include/boost/mpl/vector/aux_/item.hpp index 4f972f0..cf01a02 100644 --- a/include/boost/mpl/vector/aux_/item.hpp +++ b/include/boost/mpl/vector/aux_/item.hpp @@ -38,8 +38,10 @@ struct v_item typedef typename next::type size; typedef Base base; - using Base::item_; + // agurt 10/sep/04: MWCW <= 9.3 workaround here and below; the compiler + // breaks if using declaration comes _before_ the new overload static aux::type_wrapper item_(index_); + using Base::item_; }; template< @@ -54,8 +56,8 @@ struct v_item typedef typename next::type size; typedef Base base; - using Base::item_; static aux::type_wrapper item_(index_); + using Base::item_; }; // "erasure" item @@ -71,8 +73,8 @@ struct v_mask typedef typename prior::type size; typedef Base base; - using Base::item_; static aux::type_wrapper item_(index_); + using Base::item_; }; template< @@ -86,8 +88,8 @@ struct v_mask typedef typename prior::type size; typedef Base base; - using Base::item_; static aux::type_wrapper item_(index_); + using Base::item_; }; #endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES