@@ -43,18 +43,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
4343 assert (m.at (5 ) == 5.5 );
4444#ifndef TEST_HAS_NO_EXCEPTIONS
4545
46- // throwing is not allowed during constant evaluation
47- # if TEST_STD_VER >= 26
48- if (!std::is_constant_evaluated ()) {
49- # endif
46+ // throwing is not allowed during constant evaluation
47+ if (!std::is_constant_evaluated ())
5048 try {
5149 TEST_IGNORE_NODISCARD m.at (6 );
5250 assert (false );
5351 } catch (std::out_of_range&) {
5452 }
55- # if TEST_STD_VER >= 26
56- }
57- # endif
5853
5954#endif
6055 assert (m.at (7 ) == 7.5 );
@@ -80,18 +75,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
8075 assert (m.at (4 ) == 4.5 );
8176 assert (m.at (5 ) == 5.5 );
8277#ifndef TEST_HAS_NO_EXCEPTIONS
83- # if TEST_STD_VER >= 26
8478 // throwing is not allowed during constant evaluation
85- if (!std::is_constant_evaluated ()) {
86- # endif
79+ if (!std::is_constant_evaluated ())
8780 try {
8881 TEST_IGNORE_NODISCARD m.at (6 );
8982 assert (false );
9083 } catch (std::out_of_range&) {
9184 }
92- # if TEST_STD_VER >= 26
93- }
94- # endif
9585#endif
9686
9787 assert (m.at (7 ) == 7.5 );
@@ -121,18 +111,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
121111 assert (m.at (5 ) == 5.5 );
122112# ifndef TEST_HAS_NO_EXCEPTIONS
123113
124- // throwing is not allowed during constant evaluation
125- # if TEST_STD_VER >= 26
126- if (!std::is_constant_evaluated ()) {
127- # endif
114+ // throwing is not allowed during constant evaluation
115+ if (!std::is_constant_evaluated ())
128116 try {
129117 TEST_IGNORE_NODISCARD m.at (6 );
130118 assert (false );
131119 } catch (std::out_of_range&) {
132120 }
133- # if TEST_STD_VER >= 26
134- }
135- # endif
136121# endif
137122 assert (m.at (7 ) == 7.5 );
138123 assert (m.at (8 ) == 8.5 );
@@ -157,18 +142,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
157142 assert (m.at (4 ) == 4.5 );
158143 assert (m.at (5 ) == 5.5 );
159144# ifndef TEST_HAS_NO_EXCEPTIONS
160- // throwing is not allowed during constant evaluation
161- # if TEST_STD_VER >= 26
162- if (!std::is_constant_evaluated ()) {
163- # endif
145+ // throwing is not allowed during constant evaluation
146+ if (!std::is_constant_evaluated ())
164147 try {
165148 TEST_IGNORE_NODISCARD m.at (6 );
166149 assert (false );
167150 } catch (std::out_of_range&) {
168151 }
169- # if TEST_STD_VER >= 26
170- }
171- # endif
172152
173153# endif
174154 assert (m.at (7 ) == 7.5 );
0 commit comments