@@ -43,18 +43,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
43
43
assert (m.at (5 ) == 5.5 );
44
44
#ifndef TEST_HAS_NO_EXCEPTIONS
45
45
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 ())
50
48
try {
51
49
TEST_IGNORE_NODISCARD m.at (6 );
52
50
assert (false );
53
51
} catch (std::out_of_range&) {
54
52
}
55
- # if TEST_STD_VER >= 26
56
- }
57
- # endif
58
53
59
54
#endif
60
55
assert (m.at (7 ) == 7.5 );
@@ -80,18 +75,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
80
75
assert (m.at (4 ) == 4.5 );
81
76
assert (m.at (5 ) == 5.5 );
82
77
#ifndef TEST_HAS_NO_EXCEPTIONS
83
- # if TEST_STD_VER >= 26
84
78
// throwing is not allowed during constant evaluation
85
- if (!std::is_constant_evaluated ()) {
86
- # endif
79
+ if (!std::is_constant_evaluated ())
87
80
try {
88
81
TEST_IGNORE_NODISCARD m.at (6 );
89
82
assert (false );
90
83
} catch (std::out_of_range&) {
91
84
}
92
- # if TEST_STD_VER >= 26
93
- }
94
- # endif
95
85
#endif
96
86
97
87
assert (m.at (7 ) == 7.5 );
@@ -121,18 +111,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
121
111
assert (m.at (5 ) == 5.5 );
122
112
# ifndef TEST_HAS_NO_EXCEPTIONS
123
113
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 ())
128
116
try {
129
117
TEST_IGNORE_NODISCARD m.at (6 );
130
118
assert (false );
131
119
} catch (std::out_of_range&) {
132
120
}
133
- # if TEST_STD_VER >= 26
134
- }
135
- # endif
136
121
# endif
137
122
assert (m.at (7 ) == 7.5 );
138
123
assert (m.at (8 ) == 8.5 );
@@ -157,18 +142,13 @@ TEST_CONSTEXPR_CXX26 bool test() {
157
142
assert (m.at (4 ) == 4.5 );
158
143
assert (m.at (5 ) == 5.5 );
159
144
# 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 ())
164
147
try {
165
148
TEST_IGNORE_NODISCARD m.at (6 );
166
149
assert (false );
167
150
} catch (std::out_of_range&) {
168
151
}
169
- # if TEST_STD_VER >= 26
170
- }
171
- # endif
172
152
173
153
# endif
174
154
assert (m.at (7 ) == 7.5 );
0 commit comments