[libcxx-commits] [libcxx] [llvm] [libc++] Deprecate and remove meaningless `<cxxx>` headers (PR #111615)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 8 23:51:56 PDT 2024
================
@@ -23,4 +23,17 @@
# pragma GCC system_header
#endif
+#if _LIBCPP_STD_VER >= 17
+# if _LIBCPP_STD_VER >= 20
+# define _DEPRECATION_ANNOTATION _LIBCPP_DEPRECATED_("removed in C++20")
+# else
+# define _DEPRECATION_ANNOTATION _LIBCPP_DEPRECATED
+# endif
+
+using __standard_header_ccomplex _DEPRECATION_ANNOTATION = void;
+using __use_standard_header_ccomplex = __standard_header_ccomplex;
+
+# undef _DEPRECATION_ANNOTATION
+#endif
----------------
philnik777 wrote:
This seems like a very complex way of writing
```c++
#if defined(__DEPRECATED) && __DEPRECATED
# warning "<ccomplex> is deprecated"
#endif
```
https://github.com/llvm/llvm-project/pull/111615
More information about the libcxx-commits
mailing list