diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-03-21 15:45:20 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-03-21 15:46:37 +0900 |
commit | 733b5d5ae2c5d625211e2985ac25728ac3f54883 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /boost/fusion/algorithm/transformation/detail/replace_if.hpp | |
parent | 08c1e93fa36a49f49325a07fe91ff92c964c2b6c (diff) | |
download | boost-733b5d5ae2c5d625211e2985ac25728ac3f54883.tar.gz boost-733b5d5ae2c5d625211e2985ac25728ac3f54883.tar.bz2 boost-733b5d5ae2c5d625211e2985ac25728ac3f54883.zip |
Imported Upstream version 1.58.0upstream/1.58.0
Change-Id: If0072143aa26874812e0db6872e1efb10a3e5e94
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/fusion/algorithm/transformation/detail/replace_if.hpp')
-rw-r--r-- | boost/fusion/algorithm/transformation/detail/replace_if.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/boost/fusion/algorithm/transformation/detail/replace_if.hpp b/boost/fusion/algorithm/transformation/detail/replace_if.hpp index 5b9663b138..2ecff68249 100644 --- a/boost/fusion/algorithm/transformation/detail/replace_if.hpp +++ b/boost/fusion/algorithm/transformation/detail/replace_if.hpp @@ -21,7 +21,7 @@ namespace boost { namespace fusion { namespace detail struct replacer_if_helper<false> { template <typename U, typename F, typename T> - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static U& call(U& x, F&, T const&) { @@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace detail struct replacer_if_helper<true> { template <typename U, typename F, typename T> - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static U call(U& x, F& f, T const& new_value) { @@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail template <typename F, typename T> struct replacer_if { - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED replacer_if(F in_f, T const& in_new_value) : f(in_f), new_value(in_new_value) {} @@ -59,9 +59,9 @@ namespace boost { namespace fusion { namespace detail mpl::if_<is_convertible<T, value>, value, value const&>::type type; }; - + template <typename U> - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED typename result<replacer_if(U)>::type operator()(U const& x) const { |