[libcxx-commits] [libcxx] [libc++] Mark std::expected as nodiscard (PR #139651)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 25 20:29:56 PDT 2025


halbi2 wrote:

> > Now there is a way to disable the warning.
> 
> What way?

The programmer can pass `-D_LIBCPP_DISABLE_NODISCARD_EXPECTED=1` to disable the warning. Or do I misunderstand you, @huixie90?

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


More information about the libcxx-commits mailing list