iterator: avoid invalid scoping issues with izip

This commit is contained in:
Danny Robson 2018-07-04 14:01:46 +10:00
parent 3d59645637
commit d466ed75ac

View File

@ -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...
); );
} }