diff options
Diffstat (limited to 'boost/poly_collection/detail/functional.hpp')
-rw-r--r-- | boost/poly_collection/detail/functional.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/boost/poly_collection/detail/functional.hpp b/boost/poly_collection/detail/functional.hpp index 9fcf05c2ee..6de521ee58 100644 --- a/boost/poly_collection/detail/functional.hpp +++ b/boost/poly_collection/detail/functional.hpp @@ -15,7 +15,7 @@ #include <boost/config.hpp> #include <boost/detail/workaround.hpp> -#include <boost/poly_collection/detail/integer_sequence.hpp> +#include <boost/mp11/integer_sequence.hpp> #include <tuple> #include <utility> @@ -64,7 +64,7 @@ struct tail_closure_class std::declval<F>()(std::declval<Args>()...,std::declval<TailArgs>()...)); template<typename... Args,std::size_t... I> - return_type<Args&&...> call(index_sequence<I...>,Args&&... args) + return_type<Args&&...> call(mp11::index_sequence<I...>,Args&&... args) { return f(std::forward<Args>(args)...,std::get<I>(t)...); } @@ -73,7 +73,8 @@ struct tail_closure_class return_type<Args&&...> operator()(Args&&... args) { return call( - make_index_sequence<sizeof...(TailArgs)>{},std::forward<Args>(args)...); + mp11::make_index_sequence<sizeof...(TailArgs)>{}, + std::forward<Args>(args)...); } F f; @@ -96,7 +97,7 @@ struct head_closure_class std::declval<F>()(std::declval<HeadArgs>()...,std::declval<Args>()...)); template<typename... Args,std::size_t... I> - return_type<Args&&...> call(index_sequence<I...>,Args&&... args) + return_type<Args&&...> call(mp11::index_sequence<I...>,Args&&... args) { return f(std::get<I>(t)...,std::forward<Args>(args)...); } @@ -105,7 +106,8 @@ struct head_closure_class return_type<Args&&...> operator()(Args&&... args) { return call( - make_index_sequence<sizeof...(HeadArgs)>{},std::forward<Args>(args)...); + mp11::make_index_sequence<sizeof...(HeadArgs)>{}, + std::forward<Args>(args)...); } F f; |