[libcxx-commits] [libcxx] [libc++] Make std::unique_lock available with _LIBCPP_HAS_NO_THREADS (PR #99562)
Paul Kirth via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 30 08:45:28 PDT 2024
ilovepi wrote:
> @ilovepi Instead of doing e.g. `assert(e.code().value() == EPERM);`, I would do `assert(e.code() == std:::errc::operation_not_permitted);`. The issue must be that you're missing an include of `<cerrno>` in that test but IMO it's better to instead include `<system_error>` and use a C++ construct.
Thanks for the suggestion. That seems to have satisfied my local build, so I've gone ahead and updated the other tests to match.
https://github.com/llvm/llvm-project/pull/99562
More information about the libcxx-commits
mailing list