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

Aaron Ballman via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 8 08:55:56 PDT 2024


AaronBallman wrote:

FWIW, the POSIX macros can be deprecated in `errno.h` as well, via `#pragma clang deprecate`: https://godbolt.org/z/f8hdcs3Mf

Personally, I think deprecation is only valuable if users are warned about it explicitly. So I tend to lean towards (3) because it gets the notification out to users. It might be worth reaching out to libc folks supporting POSIX to see if they'd consider adding the deprecation warnings to errno.h as well?

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


More information about the libcxx-commits mailing list