Revert "Remove unnecessary overloads, state should always be const."

This reverts commit 9b77c26a24.

As discussed on github, the original code was wrong.
This commit is contained in:
Kohei Takahashi
2015-09-08 13:59:48 +09:00
parent 9b77c26a24
commit 1df7fc1dca
5 changed files with 96 additions and 0 deletions

View File

@ -33,6 +33,24 @@ namespace boost { namespace fusion
, F
>::type
fold(Seq const& seq, State const& state, F f);
template<typename Seq, typename State, typename F>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::fold<
Seq
, State const
, F
>::type
fold(Seq& seq, State& state, F f);
template<typename Seq, typename State, typename F>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::fold<
Seq const
, State const
, F
>::type
fold(Seq const& seq, State& state, F f);
}}
#endif