range-v3 icon indicating copy to clipboard operation
range-v3 copied to clipboard

zip_view should be Sized if at least one of the adapted ranges is sized

Open Janos95 opened this issue 6 years ago • 2 comments

For example this is not working.

Janos95 avatar Feb 11 '19 20:02 Janos95

This is also inconvenient when using zip with any_view for type erasure, eg this

alwaysmpe avatar Apr 08 '22 11:04 alwaysmpe

If all the non-sized ranges are known to be infinite, then yes. Otherwise, no. A sized range with 10 elements might be zipped with a non-sized range that only has 5. Reporting its size as 10 would be incorrect.

ericniebler avatar Apr 08 '22 21:04 ericniebler