[libcxx-commits] [PATCH] D96786: Including <ciso646> should result in an #error since C++17

Yuriy Chernyshov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Feb 28 09:16:40 PST 2021


georgthegreat updated this revision to Diff 326974.
georgthegreat retitled this revision from "<ciso646> should provide defines for alternative operator representations" to "Including <ciso646> should result in an #error since C++17".

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96786/new/

https://reviews.llvm.org/D96786

Files:
  libcxx/include/ciso646


Index: libcxx/include/ciso646
===================================================================
--- libcxx/include/ciso646
+++ libcxx/include/ciso646
@@ -17,8 +17,12 @@

 #include <__config>

+#if _LIBCPP_STD_VER > 14
+#error "Including <ciso646> is forbidden since C++17"
+#endif
+
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
 #endif

 #endif  // _LIBCPP_CISO646


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96786.326974.patch
Type: text/x-patch
Size: 400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210228/b6bd9bb9/attachment.bin>


More information about the libcxx-commits mailing list