File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
std/algorithms/alg.modifying.operations/alg.move Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ struct Test1OutIters {
94
94
95
95
TEST_CONSTEXPR_CXX20 bool test () {
96
96
types::for_each (types::cpp17_input_iterator_list<int *>(), TestOutIters ());
97
- if (TEST_STD_VER >= 23 || !TEST_IS_CONSTANT_EVALUATED )
97
+ if (TEST_STD_AT_LEAST_23_OR_RUNTIME_EVALUATED )
98
98
types::for_each (types::cpp17_input_iterator_list<std::unique_ptr<int >*>(), Test1OutIters ());
99
99
100
100
{ // Make sure that padding bits aren't copied
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ struct Test1OutIters {
92
92
93
93
TEST_CONSTEXPR_CXX20 bool test () {
94
94
types::for_each (types::bidirectional_iterator_list<int *>(), TestOutIters ());
95
- if (TEST_STD_VER >= 23 || !TEST_IS_CONSTANT_EVALUATED )
95
+ if (TEST_STD_AT_LEAST_23_OR_RUNTIME_EVALUATED )
96
96
types::for_each (types::bidirectional_iterator_list<std::unique_ptr<int >*>(), Test1OutIters ());
97
97
98
98
{ // Make sure that padding bits aren't copied
Original file line number Diff line number Diff line change 151
151
# define TEST_IS_CONSTANT_EVALUATED false
152
152
#endif
153
153
154
+ #if TEST_STD_VER >= 23
155
+ # define TEST_STD_AT_LEAST_23_OR_RUNTIME_EVALUATED true
156
+ #else
157
+ # define TEST_STD_AT_LEAST_23_OR_RUNTIME_EVALUATED (!TEST_IS_CONSTANT_EVALUATED)
158
+ #endif
159
+
154
160
#if TEST_STD_VER >= 14
155
161
# define TEST_CONSTEXPR_CXX14 constexpr
156
162
#else
You can’t perform that action at this time.
0 commit comments