diff options
Diffstat (limited to 'boost/hana/ext/std/array.hpp')
-rw-r--r-- | boost/hana/ext/std/array.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/hana/ext/std/array.hpp b/boost/hana/ext/std/array.hpp index f733624e57..15365f59cd 100644 --- a/boost/hana/ext/std/array.hpp +++ b/boost/hana/ext/std/array.hpp @@ -93,7 +93,7 @@ BOOST_HANA_NAMESPACE_BEGIN template <typename Xs, typename N> static constexpr decltype(auto) apply(Xs&& xs, N const&) { constexpr std::size_t n = N::value; - return static_cast<Xs&&>(xs)[n]; + return std::get<n>(static_cast<Xs&&>(xs)); } }; |