summaryrefslogtreecommitdiff
path: root/boost/fusion/view/nview/detail/advance_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/view/nview/detail/advance_impl.hpp')
-rw-r--r--boost/fusion/view/nview/detail/advance_impl.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/boost/fusion/view/nview/detail/advance_impl.hpp b/boost/fusion/view/nview/detail/advance_impl.hpp
index 7c74a386bb..c46414337f 100644
--- a/boost/fusion/view/nview/detail/advance_impl.hpp
+++ b/boost/fusion/view/nview/detail/advance_impl.hpp
@@ -1,7 +1,7 @@
/*=============================================================================
Copyright (c) 2009 Hartmut Kaiser
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
@@ -9,7 +9,6 @@
#define BOOST_FUSION_NVIEW_ADVANCE_IMPL_SEP_24_2009_0212PM
#include <boost/fusion/support/config.hpp>
-#include <boost/mpl/advance.hpp>
#include <boost/fusion/iterator/advance.hpp>
namespace boost { namespace fusion
@@ -30,11 +29,11 @@ namespace boost { namespace fusion
template<typename Iterator, typename Dist>
struct apply
{
- typedef typename Iterator::first_type::iterator_type iterator_type;
+ typedef typename Iterator::first_type iterator_type;
typedef typename Iterator::sequence_type sequence_type;
- typedef nview_iterator<sequence_type,
- typename mpl::advance<iterator_type, Dist>::type> type;
+ typedef nview_iterator<sequence_type,
+ typename result_of::advance<iterator_type, Dist>::type> type;
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type