Remove unnecessary warning triggering copy ctors from the test

Defining a copy ctor results in -Werror=deprecated-copy when using
implicitly-generated assignment operator with recent gcc versions, so
simply remove this copy ctor, which was apparently never needed anyhow,
to avoid it and rely on the compiler generating both the copy ctor and
assignment operator implicitly.
This commit is contained in:
Vadim Zeitlin 2021-10-01 01:01:29 +02:00
parent 576e8317ff
commit 1f7cd009c9
1 changed files with 0 additions and 2 deletions

View File

@ -15,7 +15,6 @@ namespace TopLevel
class FooBar {
public:
FooBar() {}
FooBar(const FooBar&) {}
virtual ~FooBar() {}
std::string FooBarDo() { return "Bar::Foo2::Foo2Bar()"; }
@ -56,7 +55,6 @@ namespace TopLevel
class FooBar {
public:
FooBar();
FooBar(const FooBar&);
virtual ~FooBar();
std::string FooBarDo();