diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-23 14:29:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-23 14:29:37 -0700 |
commit | ffdfd5094c9ef54cafaf3ceb12f21eb7e72566a4 (patch) | |
tree | 6501b5b2b849bf3c1d8e16c9e0f557dea630d6eb | |
parent | db343b0c896491af04c56039c5d322ba7a0d7750 (diff) | |
parent | ab04917cb39891520be2130d9142ced2100f627b (diff) |
Merge pull request #2436 from waywardmonkeys/fix-warning-in-embind-tests
[embind tests] Give AbstractClassWithConstructor a virtual destructor.
-rw-r--r-- | tests/embind/embind_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/embind/embind_test.cpp b/tests/embind/embind_test.cpp index 511f179b..7ac321a8 100644 --- a/tests/embind/embind_test.cpp +++ b/tests/embind/embind_test.cpp @@ -1201,6 +1201,8 @@ struct AbstractClassWithConstructor { : s(s) {} + virtual ~AbstractClassWithConstructor() {}; + virtual std::string abstractMethod() = 0; std::string concreteMethod() { return s; |