diff options
author | Dominic Wong <dombot@gmail.com> | 2012-11-30 15:16:00 +0800 |
---|---|---|
committer | Dominic Wong <dombot@gmail.com> | 2012-11-30 15:16:00 +0800 |
commit | e0c208c49395be56aefd37247a8852ef942703c8 (patch) | |
tree | fddf57640a6df256fbe73944be861dfa7fcbe101 /system | |
parent | 64b3836a68c51bfe5823bbd0a82050b4a43536ca (diff) |
Fixed embind for non-void non-const class methods (with test).
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/bind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h index 4a82eacb..8ce95de7 100644 --- a/system/include/emscripten/bind.h +++ b/system/include/emscripten/bind.h @@ -218,7 +218,7 @@ namespace emscripten { template<typename ClassType, typename ReturnType, typename... Args> struct MethodInvoker { typedef ReturnType (ClassType::*MemberPointer)(Args...); - typename internal::BindingType<ReturnType>::WireType invoke( + static typename internal::BindingType<ReturnType>::WireType invoke( ClassType* ptr, const MemberPointer& method, typename internal::BindingType<Args>::WireType... args |