[libcxx-commits] [libcxx] [libc++] Deprecates std::errc constants. (PR #80542)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 10 07:32:26 PST 2024


================
@@ -79,8 +79,10 @@ unsigned random_device::operator()() {
   char* p  = reinterpret_cast<char*>(&r);
   while (n > 0) {
     ssize_t s = read(__f_, p, n);
+    _LIBCPP_SUPPRESS_DEPRECATED_PUSH
     if (s == 0)
-      __throw_system_error(ENODATA, "random_device got EOF");
+      __throw_system_error(ENODATA, "random_device got EOF"); // TODO ENODATA -> ENOMSG
----------------
mordante wrote:

I like to do this is a separate commit since the result is observable. (https://github.com/llvm/llvm-project/issues/81360)

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


More information about the libcxx-commits mailing list