Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@ template <typename T, typename U>
bool operator!=(const poca_alloc<T>& lhs, const poca_alloc<U>& rhs) {
return lhs.imp != rhs.imp;
}

template <class S>
TEST_CONSTEXPR_CXX20 void test_assign(S& s1, const S& s2) {
try {
s1 = s2;
} catch (std::bad_alloc&) {
return;
}
assert(false);
}
#endif

template <class S>
Expand Down Expand Up @@ -122,7 +112,11 @@ TEST_CONSTEXPR_CXX20 bool test() {
assert(s2 == p2);

imp2.deactivate();
test_assign(s1, s2);
try {
s1 = s2;
assert(false);
} catch (std::bad_alloc&) {
}
assert(s1 == p1);
assert(s2 == p2);
}
Expand Down
Loading