Skip to content

Commit 6c75a84

Browse files
committed
[libc++][nfc] Only test if pair is_assignable after C++03.
In C++03 libc++ uses a different set of constructors which aren't constrained, so these tests won't work. This should fix the bots. Refs: 82c4701.
1 parent 99fc4a6 commit 6c75a84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/test/std/utilities/utility/pairs/pairs.pair/assign_const_pair_U_V.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ TEST_CONSTEXPR_CXX20 bool test() {
6363
assert(p.first == 42);
6464
assert(p.second.value == -42);
6565
}
66-
#endif
67-
6866
{ // test const requirement
6967
using T = std::pair<CopyAssignableInt, CopyAssignableInt>;
7068
using P = std::pair<int, int>;
@@ -76,6 +74,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
7674
static_assert(!std::is_assignable<T&, P&>::value, "");
7775
static_assert(!std::is_assignable<P&, T&>::value, "");
7876
}
77+
#endif
7978
return true;
8079
}
8180

0 commit comments

Comments
 (0)