diff options
Diffstat (limited to 'boost/fusion/algorithm/iteration/accumulate_fwd.hpp')
-rw-r--r-- | boost/fusion/algorithm/iteration/accumulate_fwd.hpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/boost/fusion/algorithm/iteration/accumulate_fwd.hpp b/boost/fusion/algorithm/iteration/accumulate_fwd.hpp index 50c4d39d4e..f00e67f966 100644 --- a/boost/fusion/algorithm/iteration/accumulate_fwd.hpp +++ b/boost/fusion/algorithm/iteration/accumulate_fwd.hpp @@ -1,5 +1,6 @@ /*============================================================================= Copyright (c) 2011 Eric Niebler + Copyright (c) 2015 Kohei Takahashi 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) @@ -8,8 +9,6 @@ #define BOOST_FUSION_ACCUMULATE_FWD_HPP_INCLUDED #include <boost/fusion/support/config.hpp> -#include <boost/fusion/support/is_sequence.hpp> -#include <boost/utility/enable_if.hpp> namespace boost { namespace fusion { @@ -21,20 +20,12 @@ namespace boost { namespace fusion template <typename Sequence, typename State, typename F> BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename - lazy_enable_if< - traits::is_sequence<Sequence> - , result_of::accumulate<Sequence, State const, F> - >::type + inline typename result_of::accumulate<Sequence, State const, F>::type accumulate(Sequence& seq, State const& state, F f); template <typename Sequence, typename State, typename F> BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename - lazy_enable_if< - traits::is_sequence<Sequence> - , result_of::accumulate<Sequence const, State const, F> - >::type + inline typename result_of::accumulate<Sequence const, State const, F>::type accumulate(Sequence const& seq, State const& state, F f); }} |