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:
parent
576e8317ff
commit
1f7cd009c9
1 changed files with 0 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue