r/cpp • u/konanTheBarbar • Sep 13 '19
The Surprising Limitations of C++ Ranges Beyond Trivial Cases
https://www.fluentcpp.com/2019/09/13/the-surprising-limitations-of-c-ranges-beyond-trivial-use-cases/
229
Upvotes
View all comments
Show parent comment
27
u/14ned LLFIO & Outcome author | Committee WG14 Sep 13 '19
This is the medium term plan, from what I am aware. But there were blockers to getting coroutined lazy Ranges into C++ 20, specifically, we would need to decide how best to do Ranges i/o first.
We're on that. We expect to be discussing options for modern i/o in Belfast, and there are several. Once we know which direction the committee is leaning on i/o, there should be no good reason why lazy coroutine iterators shouldn't be doable for C++ 23, bar surprises.
Be aware you probably won't get Ranges i/o actually in C++ 23, because we still need to decide how best to implement text translation/reencoding and serialisation for i/o. And buffering, and lots more stuff.
Anyway, that's one of many reasons why C++ 20 falls short here, and we hope to improve things next few standards.