[clang] [Clang] Backport P2741R3 (static_assert with user-generated message) to C++11 (PR #102044)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 04:13:22 PDT 2024


================
@@ -134,7 +134,7 @@ void test() {
 }
 
 namespace cwg2798 { // cwg2798: 17
-#if __cpp_static_assert >= 202306
+#if __cplusplus > 202302L
----------------
Endilll wrote:

Yeah, checking for `__cplusplus` makes more sense in DR test suite.
But I wonder if we can leverage feature test macros for a future conformance testing outside of DRs.

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


More information about the cfe-commits mailing list