@@ -42,7 +42,6 @@ struct FakeCheck {
4242 {
4343 return true ;
4444 }
45- void swap (FakeCheck& x) noexcept {};
4645};
4746
4847struct FakeCheckCheckCompletion {
@@ -52,7 +51,6 @@ struct FakeCheckCheckCompletion {
5251 n_calls.fetch_add (1 , std::memory_order_relaxed);
5352 return true ;
5453 }
55- void swap (FakeCheckCheckCompletion& x) noexcept {};
5654};
5755
5856struct FailingCheck {
@@ -63,10 +61,6 @@ struct FailingCheck {
6361 {
6462 return !fails;
6563 }
66- void swap (FailingCheck& x) noexcept
67- {
68- std::swap (fails, x.fails );
69- };
7064};
7165
7266struct UniqueCheck {
@@ -81,10 +75,6 @@ struct UniqueCheck {
8175 results.insert (check_id);
8276 return true ;
8377 }
84- void swap (UniqueCheck& x) noexcept
85- {
86- std::swap (x.check_id , check_id);
87- };
8878};
8979
9080
@@ -112,10 +102,6 @@ struct MemoryCheck {
112102 {
113103 fake_allocated_memory.fetch_sub (b, std::memory_order_relaxed);
114104 };
115- void swap (MemoryCheck& x) noexcept
116- {
117- std::swap (b, x.b );
118- };
119105};
120106
121107struct FrozenCleanupCheck {
@@ -144,10 +130,6 @@ struct FrozenCleanupCheck {
144130 should_freeze = other.should_freeze ;
145131 other.should_freeze = false ;
146132 }
147- void swap (FrozenCleanupCheck& x) noexcept
148- {
149- std::swap (should_freeze, x.should_freeze );
150- };
151133};
152134
153135// Static Allocations
0 commit comments