iterator: assert that zip arguments are the same size
This commit is contained in:
parent
db24df329f
commit
f1e5e560bc
@ -439,6 +439,8 @@ namespace util {
|
||||
auto
|
||||
zip (ContainerT&&... data)
|
||||
{
|
||||
CHECK (((std::size (data) == std::size (variadic::get<0> (data...))) && ...));
|
||||
|
||||
return detail::zip::collection<
|
||||
decltype (std::forward_as_tuple (data...)),
|
||||
decltype (std::make_tuple (std::begin (data)...)),
|
||||
|
Loading…
Reference in New Issue
Block a user