summaryrefslogtreecommitdiff
path: root/boost/hana/functional/demux.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/functional/demux.hpp')
-rw-r--r--boost/hana/functional/demux.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/boost/hana/functional/demux.hpp b/boost/hana/functional/demux.hpp
index c1ed03634e..f76b68ed48 100644
--- a/boost/hana/functional/demux.hpp
+++ b/boost/hana/functional/demux.hpp
@@ -2,7 +2,7 @@
@file
Defines `boost::hana::demux`.
-@copyright Louis Dionne 2013-2016
+@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
@@ -211,22 +211,22 @@ BOOST_HANA_NAMESPACE_BEGIN
template <typename ...X>
constexpr decltype(auto) operator()(X&& ...x) const& {
- return hana::get_impl<0>(storage_)(
- hana::get_impl<n+1>(storage_)(x...)...
+ return hana::at_c<0>(storage_)(
+ hana::at_c<n+1>(storage_)(x...)...
);
}
template <typename ...X>
constexpr decltype(auto) operator()(X&& ...x) & {
- return hana::get_impl<0>(storage_)(
- hana::get_impl<n+1>(storage_)(x...)...
+ return hana::at_c<0>(storage_)(
+ hana::at_c<n+1>(storage_)(x...)...
);
}
template <typename ...X>
constexpr decltype(auto) operator()(X&& ...x) && {
- return static_cast<F&&>(hana::get_impl<0>(storage_))(
- static_cast<G&&>(hana::get_impl<n+1>(storage_))(x...)...
+ return static_cast<F&&>(hana::at_c<0>(storage_))(
+ static_cast<G&&>(hana::at_c<n+1>(storage_))(x...)...
);
}
};
@@ -242,22 +242,22 @@ BOOST_HANA_NAMESPACE_BEGIN
template <typename ...X>
constexpr decltype(auto) operator()(X&& ...x) const& {
- return hana::get_impl<0>(storage_)(
- hana::get_impl<1>(storage_)(static_cast<X&&>(x)...)
+ return hana::at_c<0>(storage_)(
+ hana::at_c<1>(storage_)(static_cast<X&&>(x)...)
);
}
template <typename ...X>
constexpr decltype(auto) operator()(X&& ...x) & {
- return hana::get_impl<0>(storage_)(
- hana::get_impl<1>(storage_)(static_cast<X&&>(x)...)
+ return hana::at_c<0>(storage_)(
+ hana::at_c<1>(storage_)(static_cast<X&&>(x)...)
);
}
template <typename ...X>
constexpr decltype(auto) operator()(X&& ...x) && {
- return static_cast<F&&>(hana::get_impl<0>(storage_))(
- static_cast<G&&>(hana::get_impl<1>(storage_))(static_cast<X&&>(x)...)
+ return static_cast<F&&>(hana::at_c<0>(storage_))(
+ static_cast<G&&>(hana::at_c<1>(storage_))(static_cast<X&&>(x)...)
);
}
};