[libcxx-commits] [libcxx] [libc++] mark `std::expected` as `nodiscard` (PR #130820)

Nicole Mazzuca via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 24 05:52:40 PDT 2025


strega-nil-re wrote:

It seems like it's pretty much always a bug to not check an `expected`. I certainly have my opinions from MS-STL (`[[nodiscard]]` all the things!) but I don't see why anyone would ever want to implicitly ignore an `expected`.

https://github.com/llvm/llvm-project/pull/130820


More information about the libcxx-commits mailing list