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

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Feb 4 05:58:31 PST 2024


================
@@ -113,6 +113,15 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 // for them:
 
 // enum class errc
+//
+// LWG3869 deprecates the UNIX STREAMS macros and enum values.
+// This makes the code clumbersome:
+// - the enum value is deprecated and should show a diagnostic,
+// - the macro is deprecated and should _not_ show a diagnostic in this
+//   context, and
+// - the macro is not always available.
+// This leads to the odd pushing and popping of the deprecated
----------------
mordante wrote:

@AaronBallman do you agree it's a bug? If so I'm happy to file a report.

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


More information about the libcxx-commits mailing list