aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-23 14:29:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-23 14:29:37 -0700
commitffdfd5094c9ef54cafaf3ceb12f21eb7e72566a4 (patch)
tree6501b5b2b849bf3c1d8e16c9e0f557dea630d6eb
parentdb343b0c896491af04c56039c5d322ba7a0d7750 (diff)
parentab04917cb39891520be2130d9142ced2100f627b (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.cpp2
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;