diff options
Diffstat (limited to 'boost/hana/take_back.hpp')
-rw-r--r-- | boost/hana/take_back.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/hana/take_back.hpp b/boost/hana/take_back.hpp index 9a12d93b23..e838d0ac14 100644 --- a/boost/hana/take_back.hpp +++ b/boost/hana/take_back.hpp @@ -2,7 +2,7 @@ @file Defines `boost::hana::take_back`. -@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) */ @@ -57,10 +57,10 @@ BOOST_HANA_NAMESPACE_BEGIN template <typename Xs, typename N> static constexpr auto apply(Xs&& xs, N const&) { constexpr std::size_t n = N::value; - constexpr std::size_t size = decltype(hana::length(xs))::value; - constexpr std::size_t start = n < size ? size - n : 0; + constexpr std::size_t len = decltype(hana::length(xs))::value; + constexpr std::size_t start = n < len ? len - n : 0; return take_back_helper<start>(static_cast<Xs&&>(xs), - std::make_index_sequence<(n < size ? n : size)>{}); + std::make_index_sequence<(n < len ? n : len)>{}); } }; BOOST_HANA_NAMESPACE_END |