From b0897a5ea747daadbb8c6dc4b737555541abe28d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 12 May 2019 10:30:10 +1000 Subject: [PATCH] iterator/zip: prefer std::size over .size --- iterator/zip.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iterator/zip.hpp b/iterator/zip.hpp index 0d0971b3..e2038c01 100644 --- a/iterator/zip.hpp +++ b/iterator/zip.hpp @@ -158,7 +158,7 @@ namespace cruft::iterator { { // All stores should have the same size so we arbitrarily pick // the first to query. - return std::get<0> (m_store).size (); + return std::size (std::get<0> (m_store)); } @@ -208,7 +208,9 @@ namespace cruft::iterator { // The call to `zip` will peform more rigorous tests on the sizes // of the container collection. return zip ( - iota (::cruft::variadic::get<0> (data...).size ()), + iota ( + std::size (::cruft::variadic::get<0> (data...)) + ), std::forward (data)... ); }