From f0b301044013b3764a378bcd0b5e63ac1f42bcc1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 Oct 2021 01:06:01 +0200 Subject: [PATCH] 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. --- Examples/test-suite/private_assign.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/test-suite/private_assign.i b/Examples/test-suite/private_assign.i index acc4d0bc9..d9ba70cf4 100644 --- a/Examples/test-suite/private_assign.i +++ b/Examples/test-suite/private_assign.i @@ -14,6 +14,8 @@ return *this; } public: + Foo() { } + Foo(const Foo &f) { } // copy ctor can still be public, however. void bar() { } };