Skip to content

Commit

Permalink
improve robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
achabense committed Sep 17, 2023
1 parent 7cafd95 commit 25726c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/std/tests/VSO_0000000_allocator_propagation/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class lifetime_checker {
static unordered_set<const void*> record;

public:
lifetime_checker(const lifetime_checker&) = delete;
lifetime_checker& operator=(const lifetime_checker&) = delete;

_CONSTEXPR20 lifetime_checker() noexcept /* terminates */ {
if (!_Is_constant_evaluated()) {
assert(record.insert(this).second);
Expand Down Expand Up @@ -79,8 +82,6 @@ struct lifetime_checked_pointer : lifetime_checker {
other.assert_living();
}

_CONSTEXPR20 ~lifetime_checked_pointer() {}

_CONSTEXPR20 lifetime_checked_pointer& operator=(const lifetime_checked_pointer& other) noexcept {
assert_living();
other.assert_living();
Expand Down

0 comments on commit 25726c1

Please sign in to comment.