From 9b77c26a24500a19612589ef54235f64ede41a40 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Tue, 8 Sep 2015 00:22:58 +0900 Subject: [PATCH] Remove unnecessary overloads, state should always be const. --- .../algorithm/iteration/detail/fold.hpp | 24 ------------------- .../fusion/algorithm/iteration/fold_fwd.hpp | 18 -------------- .../algorithm/iteration/iter_fold_fwd.hpp | 18 -------------- .../algorithm/iteration/reverse_fold_fwd.hpp | 18 -------------- .../iteration/reverse_iter_fold_fwd.hpp | 18 -------------- 5 files changed, 96 deletions(-) diff --git a/include/boost/fusion/algorithm/iteration/detail/fold.hpp b/include/boost/fusion/algorithm/iteration/detail/fold.hpp index 22cb6ecd..5c3ec765 100644 --- a/include/boost/fusion/algorithm/iteration/detail/fold.hpp +++ b/include/boost/fusion/algorithm/iteration/detail/fold.hpp @@ -194,30 +194,6 @@ namespace boost { namespace fusion { return detail::BOOST_FUSION_FOLD_NAME(seq, state, f); } - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::BOOST_FUSION_FOLD_NAME< - Seq - , State const - , F - >::type - BOOST_FUSION_FOLD_NAME(Seq& seq, State& state, F f) - { - return detail::BOOST_FUSION_FOLD_NAME(seq, state, f); - } - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::BOOST_FUSION_FOLD_NAME< - Seq const - , State const - , F - >::type - BOOST_FUSION_FOLD_NAME(Seq const& seq, State& state, F f) - { - return detail::BOOST_FUSION_FOLD_NAME(seq, state, f); - } }} #undef BOOST_FUSION_FOLD_NAME diff --git a/include/boost/fusion/algorithm/iteration/fold_fwd.hpp b/include/boost/fusion/algorithm/iteration/fold_fwd.hpp index f8328e80..06dd6dda 100644 --- a/include/boost/fusion/algorithm/iteration/fold_fwd.hpp +++ b/include/boost/fusion/algorithm/iteration/fold_fwd.hpp @@ -33,24 +33,6 @@ namespace boost { namespace fusion , F >::type fold(Seq const& seq, State const& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::fold< - Seq - , State const - , F - >::type - fold(Seq& seq, State& state, F f); - - template - 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 diff --git a/include/boost/fusion/algorithm/iteration/iter_fold_fwd.hpp b/include/boost/fusion/algorithm/iteration/iter_fold_fwd.hpp index 6c595cf1..e7b7f434 100644 --- a/include/boost/fusion/algorithm/iteration/iter_fold_fwd.hpp +++ b/include/boost/fusion/algorithm/iteration/iter_fold_fwd.hpp @@ -33,24 +33,6 @@ namespace boost { namespace fusion , F >::type iter_fold(Seq const& seq, State const& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::iter_fold< - Seq - , State const - , F - >::type - iter_fold(Seq& seq, State& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::iter_fold< - Seq const - , State const - , F - >::type - iter_fold(Seq const& seq, State& state, F f); }} #endif diff --git a/include/boost/fusion/algorithm/iteration/reverse_fold_fwd.hpp b/include/boost/fusion/algorithm/iteration/reverse_fold_fwd.hpp index 42c8ac21..f1dd8ac7 100644 --- a/include/boost/fusion/algorithm/iteration/reverse_fold_fwd.hpp +++ b/include/boost/fusion/algorithm/iteration/reverse_fold_fwd.hpp @@ -33,24 +33,6 @@ namespace boost { namespace fusion , F >::type reverse_fold(Seq const& seq, State const& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::reverse_fold< - Seq - , State const - , F - >::type - reverse_fold(Seq& seq, State& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::reverse_fold< - Seq const - , State const - , F - >::type - reverse_fold(Seq const& seq, State& state, F f); }} #endif diff --git a/include/boost/fusion/algorithm/iteration/reverse_iter_fold_fwd.hpp b/include/boost/fusion/algorithm/iteration/reverse_iter_fold_fwd.hpp index 21d99dee..6a60931d 100644 --- a/include/boost/fusion/algorithm/iteration/reverse_iter_fold_fwd.hpp +++ b/include/boost/fusion/algorithm/iteration/reverse_iter_fold_fwd.hpp @@ -33,24 +33,6 @@ namespace boost { namespace fusion , F >::type reverse_iter_fold(Seq const& seq, State const& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::reverse_iter_fold< - Seq - , State const - , F - >::type - reverse_iter_fold(Seq& seq, State& state, F f); - - template - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - inline typename result_of::reverse_iter_fold< - Seq const - , State const - , F - >::type - reverse_iter_fold(Seq const& seq, State& state, F f); }} #endif