From e95cad3d01d6f709877cf33ed434cc1e44fb9f9b Mon Sep 17 00:00:00 2001 From: Eric Friedman Date: Sat, 8 Nov 2003 11:57:09 +0000 Subject: [PATCH] Simpler implementation. [SVN r20756] --- include/boost/mpl/index_if.hpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/include/boost/mpl/index_if.hpp b/include/boost/mpl/index_if.hpp index ead1b6b..98cd337 100644 --- a/include/boost/mpl/index_if.hpp +++ b/include/boost/mpl/index_if.hpp @@ -17,7 +17,6 @@ #ifndef BOOST_MPL_INDEX_IF_HPP_INCLUDED #define BOOST_MPL_INDEX_IF_HPP_INCLUDED -#include "boost/mpl/aux_/config/workaround.hpp" #include "boost/mpl/aux_/find_if_pred.hpp" #include "boost/mpl/begin_end.hpp" #include "boost/mpl/if.hpp" @@ -34,19 +33,6 @@ namespace boost { namespace mpl { -namespace aux { - -struct index_if_op -{ - template < typename Index, typename Iterator > - struct apply - : next< Index > - { - }; -}; - -} // namespace aux - BOOST_MPL_AUX_AGLORITHM_NAMESPACE_BEGIN template< @@ -62,7 +48,7 @@ private: typedef typename iter_fold_if< Sequence , int_<0> - , protect< aux::index_if_op > + , protect< next<> > , protect< aux::find_if_pred > >::type result_;