diff options
Diffstat (limited to 'boost/fusion/algorithm/transformation/detail/replace.hpp')
-rw-r--r-- | boost/fusion/algorithm/transformation/detail/replace.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boost/fusion/algorithm/transformation/detail/replace.hpp b/boost/fusion/algorithm/transformation/detail/replace.hpp index 18dab8cd65..5a7516bacc 100644 --- a/boost/fusion/algorithm/transformation/detail/replace.hpp +++ b/boost/fusion/algorithm/transformation/detail/replace.hpp @@ -7,6 +7,7 @@ #if !defined(FUSION_REPLACE_08182005_0841) #define FUSION_REPLACE_08182005_0841 +#include <boost/fusion/support/config.hpp> #include <boost/type_traits/is_convertible.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_helper<false> { template <typename U, typename T> + BOOST_FUSION_GPU_ENABLED static U& call(U& x, T const&, T const&) { @@ -31,6 +33,7 @@ namespace boost { namespace fusion { namespace detail struct replacer_helper<true> { template <typename U, typename T> + BOOST_FUSION_GPU_ENABLED static U call(U& x, T const& old_value, T const& new_value) { @@ -41,6 +44,7 @@ namespace boost { namespace fusion { namespace detail template <typename T> struct replacer { + BOOST_FUSION_GPU_ENABLED replacer(T const& in_old_value, T const& in_new_value) : old_value(in_old_value), 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(U)>::type operator()(U const& x) const { |