Mark LWG3274 as complete. The feature test macro __cpp_lib_span was added in
6d2599e4f776d0cd88438cb82a00c4fc25cc3f67.
https://wg21.link/p1024 mentions marking span:::empty() with
[[nodiscard]] which is not done yet. So, do that and add tests.
Differential D111516
[libc++][docs] Mark LWG3274 as complete jloser on Oct 10 2021, 5:26 PM. Authored by
Details
Mark LWG3274 as complete. The feature test macro __cpp_lib_span was added in https://wg21.link/p1024 mentions marking span:::empty() with
Diff Detail
Event Timeline
Comment Actions I think CI is failing due to the unexpectedly pass test due to the copied XFAIL from empty.pass.cpp. Just removed the XFAIL.
|
The feature test macro has indeed been there since forever; but before we mark this "Complete", let's do a pass over the paper that added it
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1024r3.pdf
and see what else might be missing.
I think adding [[nodiscard]] to empty() — and writing a test for that — is all that's needed, then.