diff options
Diffstat (limited to 'boost/fusion/algorithm/transformation/detail/replace_if.hpp')
-rw-r--r-- | boost/fusion/algorithm/transformation/detail/replace_if.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boost/fusion/algorithm/transformation/detail/replace_if.hpp b/boost/fusion/algorithm/transformation/detail/replace_if.hpp index d45ca39219..5b9663b138 100644 --- a/boost/fusion/algorithm/transformation/detail/replace_if.hpp +++ b/boost/fusion/algorithm/transformation/detail/replace_if.hpp @@ -7,6 +7,7 @@ #if !defined(FUSION_REPLACE_IF_08182005_0946) #define FUSION_REPLACE_IF_08182005_0946 +#include <boost/fusion/support/config.hpp> #include <boost/utility/enable_if.hpp> #include <boost/mpl/if.hpp> #include <boost/type_traits/remove_reference.hpp> @@ -20,6 +21,7 @@ namespace boost { namespace fusion { namespace detail struct replacer_if_helper<false> { template <typename U, typename F, typename T> + BOOST_FUSION_GPU_ENABLED static U& call(U& x, F&, T const&) { @@ -31,6 +33,7 @@ namespace boost { namespace fusion { namespace detail struct replacer_if_helper<true> { template <typename U, typename F, typename T> + BOOST_FUSION_GPU_ENABLED static U call(U& x, F& f, T const& new_value) { @@ -41,6 +44,7 @@ namespace boost { namespace fusion { namespace detail template <typename F, typename T> struct replacer_if { + BOOST_FUSION_GPU_ENABLED replacer_if(F in_f, T const& in_new_value) : f(in_f), new_value(in_new_value) {} @@ -57,6 +61,7 @@ namespace boost { namespace fusion { namespace detail }; template <typename U> + BOOST_FUSION_GPU_ENABLED typename result<replacer_if(U)>::type operator()(U const& x) const { |