mirror of https://github.com/swig/swig
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
|
@ -15,7 +15,6 @@ namespace TopLevel
|
||||||
class FooBar {
|
class FooBar {
|
||||||
public:
|
public:
|
||||||
FooBar() {}
|
FooBar() {}
|
||||||
FooBar(const FooBar&) {}
|
|
||||||
virtual ~FooBar() {}
|
virtual ~FooBar() {}
|
||||||
|
|
||||||
std::string FooBarDo() { return "Bar::Foo2::Foo2Bar()"; }
|
std::string FooBarDo() { return "Bar::Foo2::Foo2Bar()"; }
|
||||||
|
@ -56,7 +55,6 @@ namespace TopLevel
|
||||||
class FooBar {
|
class FooBar {
|
||||||
public:
|
public:
|
||||||
FooBar();
|
FooBar();
|
||||||
FooBar(const FooBar&);
|
|
||||||
virtual ~FooBar();
|
virtual ~FooBar();
|
||||||
|
|
||||||
std::string FooBarDo();
|
std::string FooBarDo();
|
||||||
|
|
Loading…
Reference in New Issue