summaryrefslogtreecommitdiff
path: root/boost/hana/functional/partial.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/functional/partial.hpp')
-rw-r--r--boost/hana/functional/partial.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/boost/hana/functional/partial.hpp b/boost/hana/functional/partial.hpp
index 064d0058ac..cfe981dddf 100644
--- a/boost/hana/functional/partial.hpp
+++ b/boost/hana/functional/partial.hpp
@@ -2,7 +2,7 @@
@file
Defines `boost::hana::partial`.
-@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)
*/
@@ -75,24 +75,24 @@ BOOST_HANA_NAMESPACE_BEGIN
template <typename ...Y>
constexpr decltype(auto) operator()(Y&& ...y) const& {
- return hana::get_impl<0>(storage_)(
- hana::get_impl<n+1>(storage_)...,
+ return hana::at_c<0>(storage_)(
+ hana::at_c<n+1>(storage_)...,
static_cast<Y&&>(y)...
);
}
template <typename ...Y>
constexpr decltype(auto) operator()(Y&& ...y) & {
- return hana::get_impl<0>(storage_)(
- hana::get_impl<n+1>(storage_)...,
+ return hana::at_c<0>(storage_)(
+ hana::at_c<n+1>(storage_)...,
static_cast<Y&&>(y)...
);
}
template <typename ...Y>
constexpr decltype(auto) operator()(Y&& ...y) && {
- return static_cast<F&&>(hana::get_impl<0>(storage_))(
- static_cast<X&&>(hana::get_impl<n+1>(storage_))...,
+ return static_cast<F&&>(hana::at_c<0>(storage_))(
+ static_cast<X&&>(hana::at_c<n+1>(storage_))...,
static_cast<Y&&>(y)...
);
}