@@ -161,6 +161,8 @@ class MyObject4a {
161161 print_created (this );
162162 pointer_set<MyObject4a>().insert (this );
163163 };
164+ MyObject4a (const MyObject4a &) = delete ;
165+
164166 int value;
165167
166168 static void cleanupAllInstances () {
@@ -182,13 +184,15 @@ class MyObject4a {
182184class MyObject4b : public MyObject4a {
183185public:
184186 explicit MyObject4b (int i) : MyObject4a(i) { print_created (this ); }
187+ MyObject4b (const MyObject4b &) = delete ;
185188 ~MyObject4b () override { print_destroyed (this ); }
186189};
187190
188191// test_large_holder
189192class MyObject5 { // managed by huge_unique_ptr
190193public:
191194 explicit MyObject5 (int value) : value{value} { print_created (this ); }
195+ MyObject5 (const MyObject5 &) = delete ;
192196 ~MyObject5 () { print_destroyed (this ); }
193197 int value;
194198};
@@ -245,6 +249,7 @@ struct SharedFromThisVirt : virtual SharedFromThisVBase {};
245249// test_move_only_holder
246250struct C {
247251 C () { print_created (this ); }
252+ C (const C &) = delete ;
248253 ~C () { print_destroyed (this ); }
249254};
250255
@@ -265,6 +270,7 @@ struct TypeForHolderWithAddressOf {
265270// test_move_only_holder_with_addressof_operator
266271struct TypeForMoveOnlyHolderWithAddressOf {
267272 explicit TypeForMoveOnlyHolderWithAddressOf (int value) : value{value} { print_created (this ); }
273+ TypeForMoveOnlyHolderWithAddressOf (const TypeForMoveOnlyHolderWithAddressOf &) = delete ;
268274 ~TypeForMoveOnlyHolderWithAddressOf () { print_destroyed (this ); }
269275 std::string toString () const {
270276 return " MoveOnlyHolderWithAddressOf[" + std::to_string (value) + " ]" ;
0 commit comments