aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-13 12:51:08 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 23:08:06 +0700
commit29839c4b7c6803c4741641e5ba8158516da2f680 (patch)
treee6b21e6f2a50f7733d2c5ca55b7fcef95e12c4d4 /tests
parent121cb8f58671140441eec21780f97fef4f8cb667 (diff)
Moarrrr templates! Remove some boilerplate in embind. Thanks imran and andy!
Diffstat (limited to 'tests')
-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);
}