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'}}
|
/// eg, util::izip ("abc") ~= {{0,'a'},{1,'b'},{2,'c'}}
|
||||||
template <typename ...ContainerT>
|
template <typename ...ContainerT>
|
||||||
auto
|
auto
|
||||||
izip (ContainerT&&... data)
|
izip (ContainerT&... data)
|
||||||
{
|
{
|
||||||
return zip (
|
return zip (
|
||||||
::util::make_indices (::util::variadic::get<0> (data...)),
|
indices (::util::variadic::get<0> (data...)),
|
||||||
std::forward<ContainerT> (data)...
|
data...
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user