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