@@ -44,7 +44,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
44
44
#ifndef TEST_HAS_NO_EXCEPTIONS
45
45
46
46
// throwing is not allowed during constant evaluation
47
- if (!std::is_constant_evaluated () )
47
+ if (!TEST_IS_CONSTANT_EVALUATED )
48
48
try {
49
49
TEST_IGNORE_NODISCARD m.at (6 );
50
50
assert (false );
@@ -76,7 +76,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
76
76
assert (m.at (5 ) == 5.5 );
77
77
#ifndef TEST_HAS_NO_EXCEPTIONS
78
78
// throwing is not allowed during constant evaluation
79
- if (!std::is_constant_evaluated () )
79
+ if (!TEST_IS_CONSTANT_EVALUATED )
80
80
try {
81
81
TEST_IGNORE_NODISCARD m.at (6 );
82
82
assert (false );
@@ -112,7 +112,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
112
112
# ifndef TEST_HAS_NO_EXCEPTIONS
113
113
114
114
// throwing is not allowed during constant evaluation
115
- if (!std::is_constant_evaluated () )
115
+ if (!TEST_IS_CONSTANT_EVALUATED )
116
116
try {
117
117
TEST_IGNORE_NODISCARD m.at (6 );
118
118
assert (false );
@@ -143,7 +143,7 @@ TEST_CONSTEXPR_CXX26 bool test() {
143
143
assert (m.at (5 ) == 5.5 );
144
144
# ifndef TEST_HAS_NO_EXCEPTIONS
145
145
// throwing is not allowed during constant evaluation
146
- if (!std::is_constant_evaluated () )
146
+ if (!TEST_IS_CONSTANT_EVALUATED )
147
147
try {
148
148
TEST_IGNORE_NODISCARD m.at (6 );
149
149
assert (false );
0 commit comments