summaryrefslogtreecommitdiff
path: root/boost/hana/zip_shortest_with.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/zip_shortest_with.hpp')
-rw-r--r--boost/hana/zip_shortest_with.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/hana/zip_shortest_with.hpp b/boost/hana/zip_shortest_with.hpp
index c0e6dcdf65..fc43f35239 100644
--- a/boost/hana/zip_shortest_with.hpp
+++ b/boost/hana/zip_shortest_with.hpp
@@ -2,7 +2,7 @@
@file
Defines `boost::hana::zip_shortest_with`.
-@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)
*/
@@ -52,9 +52,10 @@ BOOST_HANA_NAMESPACE_BEGIN
constexpr std::size_t lengths[] = {
decltype(hana::length(xs))::value...
};
- constexpr std::size_t min = *detail::min_element(lengths, lengths + sizeof...(xs));
+ constexpr std::size_t min_len =
+ *detail::min_element(lengths, lengths + sizeof...(xs));
return hana::zip_with(static_cast<F&&>(f),
- hana::take_front(static_cast<Xs&&>(xs), hana::size_c<min>)...
+ hana::take_front(static_cast<Xs&&>(xs), hana::size_c<min_len>)...
);
}
};