File tree 2 files changed +2
-2
lines changed
algorithms/alg.modifying.operations/alg.swap
utilities/utility/utility.swap
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
126
126
127
127
#if TEST_STD_VER >= 11
128
128
// We can't test unique_ptr in constant evaluation before C++23 as it's constexpr only since C++23.
129
- if (!TEST_IS_CONSTANT_EVALUATED || TEST_STD_VER >= 23 )
129
+ if (TEST_STD_VER >= 23 || !TEST_IS_CONSTANT_EVALUATED )
130
130
types::for_each (types::forward_iterator_list<std::unique_ptr<int >*>(), TestUniquePtr ());
131
131
#endif
132
132
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
122
122
}
123
123
124
124
// We can't test unique_ptr in constant evaluation before C++23 as it's constexpr only since C++23.
125
- if (!TEST_IS_CONSTANT_EVALUATED || TEST_STD_VER >= 23 ) {
125
+ if (TEST_STD_VER >= 23 || !TEST_IS_CONSTANT_EVALUATED ) {
126
126
std::unique_ptr<int > i[3 ];
127
127
for (int k = 0 ; k < 3 ; ++k)
128
128
i[k].reset (new int (k + 1 ));
You can’t perform that action at this time.
0 commit comments