diff --git a/include/boost/fusion/algorithm/iteration/accumulate.hpp b/include/boost/fusion/algorithm/iteration/accumulate.hpp index 10309cc2..3d0685f7 100644 --- a/include/boost/fusion/algorithm/iteration/accumulate.hpp +++ b/include/boost/fusion/algorithm/iteration/accumulate.hpp @@ -23,14 +23,14 @@ namespace boost { namespace fusion template inline typename result_of::accumulate::type - accumulate(Sequence& seq, State const& state, F const& f) + accumulate(Sequence& seq, State const& state, F f) { return fusion::fold(seq, state, f); } template inline typename result_of::accumulate::type - accumulate(Sequence const& seq, State const& state, F const& f) + accumulate(Sequence const& seq, State const& state, F f) { return fusion::fold(seq, state, f); } diff --git a/include/boost/fusion/algorithm/iteration/detail/fold.hpp b/include/boost/fusion/algorithm/iteration/detail/fold.hpp index 9b819954..542a8114 100644 --- a/include/boost/fusion/algorithm/iteration/detail/fold.hpp +++ b/include/boost/fusion/algorithm/iteration/detail/fold.hpp @@ -79,7 +79,7 @@ namespace detail { template static typename result_of_unrolled_fold::type - call(I0 const& i0, State const& state, F const& f) + call(I0 const& i0, State const& state, F f) { typedef typename result_of::next::type I1; I1 i1 = fusion::next(i0); @@ -99,7 +99,7 @@ namespace detail { template static typename result_of_unrolled_fold::type - call(I0 const& i0, State const& state, F const& f) + call(I0 const& i0, State const& state, F f) { typedef typename result_of::next::type I1; I1 i1 = fusion::next(i0); @@ -114,7 +114,7 @@ namespace detail { template static typename result_of_unrolled_fold::type - call(I0 const& i0, State const& state, F const& f) + call(I0 const& i0, State const& state, F f) { typedef typename result_of::next::type I1; I1 i1 = fusion::next(i0); @@ -127,7 +127,7 @@ namespace detail { template static typename result_of_unrolled_fold::type - call(I0 const& i0, State const& state, F const& f) + call(I0 const& i0, State const& state, F f) { return f(*i0, state); } @@ -137,7 +137,7 @@ namespace detail struct unrolled_fold<0> { template - static State call(I0 const&, State const& state, F const&) + static State call(I0 const&, State const& state, F) { return state; } @@ -146,7 +146,7 @@ namespace detail // terminal case template inline State const& - linear_fold(First const&, Last const&, State const& state, F const&, mpl::true_) + linear_fold(First const&, Last const&, State const& state, F, mpl::true_) { return state; } @@ -158,7 +158,7 @@ namespace detail First const& first , Last const& last , State const& state - , F const& f + , F f , mpl::false_) { return detail::linear_fold( @@ -242,7 +242,7 @@ namespace detail template typename result_of::fold::type - fold(Sequence& seq, State const& state, F const& f, Tag) + fold(Sequence& seq, State const& state, F f, Tag) { return linear_fold( fusion::begin(seq) @@ -257,7 +257,7 @@ namespace detail template typename result_of::fold::type - fold(Sequence& seq, State const& state, F const& f, random_access_traversal_tag) + fold(Sequence& seq, State const& state, F f, random_access_traversal_tag) { typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; diff --git a/include/boost/fusion/algorithm/iteration/fold.hpp b/include/boost/fusion/algorithm/iteration/fold.hpp index 046acb86..75c63b8f 100644 --- a/include/boost/fusion/algorithm/iteration/fold.hpp +++ b/include/boost/fusion/algorithm/iteration/fold.hpp @@ -31,14 +31,14 @@ namespace boost { namespace fusion { template inline typename result_of::fold::type - fold(Sequence& seq, State const& state, F const& f) + fold(Sequence& seq, State const& state, F f) { return detail::fold(seq, state, f, typename traits::category_of::type()); } template inline typename result_of::fold::type - fold(Sequence const& seq, State const& state, F const& f) + fold(Sequence const& seq, State const& state, F f) { return detail::fold(seq, state, f, typename traits::category_of::type()); }