microsoft / STL

MSVC's implementation of the C++ Standard Library.
Other
10.2k stars 1.51k forks source link

P2281R1 Clarifying Range Adaptor Objects #1983

Closed StephanTLavavej closed 3 years ago

StephanTLavavej commented 3 years ago

P2281R1 Clarifying Range Adaptor Objects

No feature-test macro is mentioned.

At the June 2021 virtual plenary meeting, this was accepted as a defect report for C++20, which means that this paper applies retroactively to the C++20 Standard.

frederick-vs-ja commented 3 years ago

Is this already implemented (via the report in LWG-3509)?

CaseyCarter commented 3 years ago

There's nothing to implement here; this proposal simply clarifies the requirements of the existing implementations and codifies them in the Standard. I'm calling this complete.

CaseyCarter commented 3 years ago

I'm mistaken, I wasn't looking closely enough. Our range adaptor closure objects for split_view (and soon lazy_split_view) capture the pattern argument like a viewable_range via views:all, whereas P2281 says we should capture by copy. This will need another small followup in or after merging #2042.