diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:41:18 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:43:11 +0900 |
commit | f763a99a501650eff2c60288aa6f10ef916d769e (patch) | |
tree | 02af7e13f9a38c888ebf340fe764cbe7dae99da9 /boost/hana/functional/lockstep.hpp | |
parent | 5cde13f21d36c7224b0e13d11c4b49379ae5210d (diff) | |
download | boost-f763a99a501650eff2c60288aa6f10ef916d769e.tar.gz boost-f763a99a501650eff2c60288aa6f10ef916d769e.tar.bz2 boost-f763a99a501650eff2c60288aa6f10ef916d769e.zip |
Imported Upstream version 1.62.0upstream/1.62.0
Change-Id: I9d4c1ddb7b7d8f0069217ecc582700f9fda6dd4c
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/hana/functional/lockstep.hpp')
-rw-r--r-- | boost/hana/functional/lockstep.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/hana/functional/lockstep.hpp b/boost/hana/functional/lockstep.hpp index fe4a12c7bd..11f8d6226f 100644 --- a/boost/hana/functional/lockstep.hpp +++ b/boost/hana/functional/lockstep.hpp @@ -12,9 +12,9 @@ Distributed under the Boost Software License, Version 1.0. #include <boost/hana/basic_tuple.hpp> #include <boost/hana/config.hpp> +#include <boost/hana/detail/decay.hpp> #include <cstddef> -#include <type_traits> #include <utility> @@ -51,7 +51,7 @@ BOOST_HANA_NAMESPACE_BEGIN struct make_pre_lockstep_t { struct secret { }; template <typename F> - constexpr pre_lockstep_t<typename std::decay<F>::type> operator()(F&& f) const { + constexpr pre_lockstep_t<typename detail::decay<F>::type> operator()(F&& f) const { return {static_cast<F&&>(f)}; } }; @@ -93,14 +93,14 @@ BOOST_HANA_NAMESPACE_BEGIN template <typename ...G> constexpr lockstep_t<std::make_index_sequence<sizeof...(G)>, F, - typename std::decay<G>::type...> + typename detail::decay<G>::type...> operator()(G&& ...g) const& { return {make_pre_lockstep_t::secret{}, this->f, static_cast<G&&>(g)...}; } template <typename ...G> constexpr lockstep_t<std::make_index_sequence<sizeof...(G)>, F, - typename std::decay<G>::type...> + typename detail::decay<G>::type...> operator()(G&& ...g) && { return {make_pre_lockstep_t::secret{}, static_cast<F&&>(this->f), static_cast<G&&>(g)...}; |