Avoid another warning about deprecated implicit copy ctor

This is similar to the previous commit, but in the other direction, with
the warning being generated for the implicitly-declared copy ctor due to
having an explicitly-declared assignment operator.

And the fix is different too because we need to have an assignment
operator in this test, so define the copy ctor explicitly too.
This commit is contained in:
Vadim Zeitlin 2021-10-01 01:06:01 +02:00
commit f0b3010440

View file

@ -14,6 +14,8 @@
return *this;
}
public:
Foo() { }
Foo(const Foo &f) { } // copy ctor can still be public, however.
void bar() { }
};