diff options
Diffstat (limited to 'tests/embind/embind_test.cpp')
-rw-r--r-- | tests/embind/embind_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/embind/embind_test.cpp b/tests/embind/embind_test.cpp index e14a633b..1bfd0ef7 100644 --- a/tests/embind/embind_test.cpp +++ b/tests/embind/embind_test.cpp @@ -1161,7 +1161,7 @@ EMSCRIPTEN_BINDINGS(interface_tests) { class_<AbstractClass>("AbstractClass") .smart_ptr<std::shared_ptr<AbstractClass>>("shared_ptr<AbstractClass>") .allow_subclass<AbstractClassWrapper>("AbstractClassWrapper") - .function("abstractMethod", &AbstractClass::abstractMethod) + .function("abstractMethod", &AbstractClass::abstractMethod, pure_virtual()) // The select_overload is necessary because, otherwise, the C++ compiler // cannot deduce the signature of the lambda function. .function("optionalMethod", select_overload<std::string(AbstractClass&, std::string)>( |