aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/pybind11/tests/test_callbacks.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/pybind11/tests/test_callbacks.cpp')
-rw-r--r--3rdparty/pybind11/tests/test_callbacks.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rdparty/pybind11/tests/test_callbacks.cpp b/3rdparty/pybind11/tests/test_callbacks.cpp
index 71b88c44..683dfb3e 100644
--- a/3rdparty/pybind11/tests/test_callbacks.cpp
+++ b/3rdparty/pybind11/tests/test_callbacks.cpp
@@ -117,7 +117,11 @@ TEST_SUBMODULE(callbacks, m) {
}
});
- class AbstractBase { public: virtual unsigned int func() = 0; };
+ class AbstractBase {
+ public:
+ virtual ~AbstractBase() = default;
+ virtual unsigned int func() = 0;
+ };
m.def("func_accepting_func_accepting_base", [](std::function<double(AbstractBase&)>) { });
struct MovableObject {