[libcxx-commits] [libcxx] [libc++] P3798R1: The unexpected in std::expected (PR #204826)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 21 18:10:58 PDT 2026
================
@@ -1599,6 +1603,10 @@ class expected<_Tp, _Err> : private __expected_void_base<_Err> {
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr bool has_value() const noexcept { return this->__has_val(); }
+# if _LIBCPP_STD_VER >= 29
----------------
frederick-vs-ja wrote:
Oh. I totally missed that this should be a DR.
Let's modify this line in `libcxx/docs/Status/Cxx29Papers.csv` together.
https://github.com/llvm/llvm-project/blob/2e87cf8c2b8ec6453ccfa7e448d5b33f1d71a2ca/libcxx/docs/Status/Cxx29Papers.csv#L6
```diff
-"`P3798R1 <https://wg21.link/P3798R1>`__","The unexpected in ``std::expected``","2026-06 (Brno)","","","`#204394 <https://github.com/llvm/llvm-project/issues/204394>`__",""
+"`P3798R1 <https://wg21.link/P3798R1>`__","The unexpected in ``std::expected``","2026-06 (Brno)","|Complete|","23","`#204394 <https://github.com/llvm/llvm-project/issues/204394>`__","Applied as a Defect Report."
```
And add one entry below this line in `libcxx/docs/ReleaseNotes/23.rst`.
https://github.com/llvm/llvm-project/blob/2e87cf8c2b8ec6453ccfa7e448d5b33f1d71a2ca/libcxx/docs/ReleaseNotes/23.rst#L54
```rst
- P3798R1: The unexpected in ``std::expected`` (`Github <https://llvm.org/PR204394>`__)
```
https://github.com/llvm/llvm-project/pull/204826
More information about the libcxx-commits
mailing list