Simpler implementation.

[SVN r20756]
This commit is contained in:
Eric Friedman
2003-11-08 11:57:09 +00:00
parent e9b1a7ef7f
commit e95cad3d01

View File

@@ -17,7 +17,6 @@
#ifndef BOOST_MPL_INDEX_IF_HPP_INCLUDED #ifndef BOOST_MPL_INDEX_IF_HPP_INCLUDED
#define 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/aux_/find_if_pred.hpp"
#include "boost/mpl/begin_end.hpp" #include "boost/mpl/begin_end.hpp"
#include "boost/mpl/if.hpp" #include "boost/mpl/if.hpp"
@@ -34,19 +33,6 @@
namespace boost { namespace boost {
namespace mpl { 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 BOOST_MPL_AUX_AGLORITHM_NAMESPACE_BEGIN
template< template<
@@ -62,7 +48,7 @@ private:
typedef typename iter_fold_if< typedef typename iter_fold_if<
Sequence Sequence
, int_<0> , int_<0>
, protect< aux::index_if_op > , protect< next<> >
, protect< aux::find_if_pred<pred_> > , protect< aux::find_if_pred<pred_> >
>::type result_; >::type result_;