[libcxx-commits] [libcxx] [libc++] mark `std::expected` as `nodiscard` (PR #130820)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 11 18:05:11 PDT 2025
================
@@ -58,7 +58,7 @@ _LIBCPP_PUSH_MACROS
_LIBCPP_BEGIN_NAMESPACE_STD
template <class _Tp, class _Err>
-class expected;
+class [[nodiscrad]] expected;
----------------
frederick-vs-ja wrote:
Yes. I don't think this header (providing C++23 features, but in the frozen `__cxx03` subdirectory) should ever be used.
https://github.com/llvm/llvm-project/pull/130820
More information about the libcxx-commits
mailing list