iterator: avoid invalid scoping issues with izip
This commit is contained in:
parent
3d59645637
commit
d466ed75ac
@ -463,11 +463,11 @@ namespace util {
|
||||
/// eg, util::izip ("abc") ~= {{0,'a'},{1,'b'},{2,'c'}}
|
||||
template <typename ...ContainerT>
|
||||
auto
|
||||
izip (ContainerT&&... data)
|
||||
izip (ContainerT&... data)
|
||||
{
|
||||
return zip (
|
||||
::util::make_indices (::util::variadic::get<0> (data...)),
|
||||
std::forward<ContainerT> (data)...
|
||||
indices (::util::variadic::get<0> (data...)),
|
||||
data...
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user