@@ -44,7 +44,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
4444#ifndef TEST_HAS_NO_EXCEPTIONS
4545
4646 // throwing is not allowed during constant evaluation
47- if (!std::is_constant_evaluated () )
47+ if (!TEST_IS_CONSTANT_EVALUATED )
4848 try {
4949 TEST_IGNORE_NODISCARD m.at (6 );
5050 assert (false );
@@ -76,7 +76,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
7676 assert (m.at (5 ) == 5.5 );
7777#ifndef TEST_HAS_NO_EXCEPTIONS
7878 // throwing is not allowed during constant evaluation
79- if (!std::is_constant_evaluated () )
79+ if (!TEST_IS_CONSTANT_EVALUATED )
8080 try {
8181 TEST_IGNORE_NODISCARD m.at (6 );
8282 assert (false );
@@ -112,7 +112,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
112112# ifndef TEST_HAS_NO_EXCEPTIONS
113113
114114 // throwing is not allowed during constant evaluation
115- if (!std::is_constant_evaluated () )
115+ if (!TEST_IS_CONSTANT_EVALUATED )
116116 try {
117117 TEST_IGNORE_NODISCARD m.at (6 );
118118 assert (false );
@@ -143,7 +143,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
143143 assert (m.at (5 ) == 5.5 );
144144# ifndef TEST_HAS_NO_EXCEPTIONS
145145 // throwing is not allowed during constant evaluation
146- if (!std::is_constant_evaluated () )
146+ if (!TEST_IS_CONSTANT_EVALUATED )
147147 try {
148148 TEST_IGNORE_NODISCARD m.at (6 );
149149 assert (false );
0 commit comments