diff options
Diffstat (limited to 'boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp')
-rw-r--r-- | boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp b/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp index d368338a0b..140c70b1c2 100644 --- a/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp +++ b/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp @@ -24,6 +24,7 @@ namespace boost { namespace fusion struct unrolled_fold { template<typename State, typename It0, typename F> + BOOST_FUSION_GPU_ENABLED static Result call(State const& state,It0 const& it0,F f) { @@ -64,6 +65,7 @@ namespace boost { namespace fusion struct unrolled_fold<Result,3> { template<typename State, typename It0, typename F> + BOOST_FUSION_GPU_ENABLED static Result call(State const& state,It0 const& it0,F f) { @@ -90,6 +92,7 @@ namespace boost { namespace fusion struct unrolled_fold<Result,2> { template<typename State, typename It0, typename F> + BOOST_FUSION_GPU_ENABLED static Result call(State const& state,It0 const& it0,F f) { @@ -104,6 +107,7 @@ namespace boost { namespace fusion struct unrolled_fold<Result,1> { template<typename State, typename It0, typename F> + BOOST_FUSION_GPU_ENABLED static Result call(State const& state,It0 const& it0,F f) { @@ -115,8 +119,9 @@ namespace boost { namespace fusion struct unrolled_fold<Result,0> { template<typename State, typename It0, typename F> + BOOST_FUSION_GPU_ENABLED static Result - call(State const& state,It0 const& it0, F) + call(State const& state,It0 const&, F) { return static_cast<Result>(state); } @@ -277,6 +282,7 @@ namespace boost { namespace fusion , SeqSize >::type type; + BOOST_FUSION_GPU_ENABLED static type call(StateRef state, Seq& seq, F f) { @@ -296,6 +302,7 @@ namespace boost { namespace fusion struct fold_impl<0,StateRef,Seq,F> { typedef StateRef type; + BOOST_FUSION_GPU_ENABLED static StateRef call(StateRef state, Seq&, F) { @@ -327,6 +334,7 @@ namespace boost { namespace fusion {}; } template<typename Seq, typename State, typename F> + BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq , State const @@ -340,6 +348,7 @@ namespace boost { namespace fusion f); } template<typename Seq, typename State, typename F> + BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq const , State const @@ -353,6 +362,7 @@ namespace boost { namespace fusion f); } template<typename Seq, typename State, typename F> + BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq , State const @@ -366,6 +376,7 @@ namespace boost { namespace fusion f); } template<typename Seq, typename State, typename F> + BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq const , State const |