summaryrefslogtreecommitdiff
path: root/tests/embind/embind_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/embind/embind_test.cpp')
-rw-r--r--tests/embind/embind_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/embind/embind_test.cpp b/tests/embind/embind_test.cpp
index a0cb858d..30267994 100644
--- a/tests/embind/embind_test.cpp
+++ b/tests/embind/embind_test.cpp
@@ -1226,7 +1226,7 @@ EMSCRIPTEN_BINDINGS(interface_tests) {
.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)>(
+ .function("optionalMethod", optional_override(
[](AbstractClass& this_, std::string s) {
return this_.AbstractClass::optionalMethod(s);
}