]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Replace check for exceptions in mdspan/at.cc.
authorTomasz Kamiński <tkaminsk@redhat.com>
Tue, 24 Feb 2026 17:20:53 +0000 (18:20 +0100)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 24 Feb 2026 17:22:54 +0000 (18:22 +0100)
Uses __cpp_lib_constexpr_exceptions, that better expresses
the intent.

libstdc++-v3/ChangeLog:

* testsuite/23_containers/mdspan/at.cc: Updated guard.

libstdc++-v3/testsuite/23_containers/mdspan/at.cc

index d9edce464add55930c524a565b2ada538d1f77bd..c5a12d12cccb827ee5a55f2152e197aae00c189e 100644 (file)
@@ -89,7 +89,7 @@ template<typename Int, bool ValidForPacks, bool ValidForArrays>
       }
     };
 
-#if !_GLIBCXX_USE_CXX11_ABI
+#if !__cpp_lib_constexpr_exceptions
     if consteval {
       return true;
     }