fusion::fold allows to take non-const lv-ref state properly.

This commit is contained in:
Kohei Takahashi
2015-09-08 15:14:27 +09:00
parent 1df7fc1dca
commit 76b7697ba5
11 changed files with 31 additions and 23 deletions

View File

@ -38,7 +38,7 @@ namespace boost { namespace fusion
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::fold<
Seq
, State const
, State
, F
>::type
fold(Seq& seq, State& state, F f);
@ -47,7 +47,7 @@ namespace boost { namespace fusion
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::fold<
Seq const
, State const
, State
, F
>::type
fold(Seq const& seq, State& state, F f);