summaryrefslogtreecommitdiff
path: root/boost/hana/zip_shortest_with.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:08:07 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:09:00 +0900
commitb5c87084afaef42b2d058f68091be31988a6a874 (patch)
treeadef9a65870a41181687e11d57fdf98e7629de3c /boost/hana/zip_shortest_with.hpp
parent34bd32e225e2a8a94104489b31c42e5801cc1f4a (diff)
downloadboost-b5c87084afaef42b2d058f68091be31988a6a874.tar.gz
boost-b5c87084afaef42b2d058f68091be31988a6a874.tar.bz2
boost-b5c87084afaef42b2d058f68091be31988a6a874.zip
Imported Upstream version 1.64.0upstream/1.64.0
Change-Id: Id9212edd016dd55f21172c427aa7894d1d24148b Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
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>)...
);
}
};