aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rwxr-xr-xsystem/include/emscripten/wire.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h
index 1be23e78..d4efc3ac 100755
--- a/system/include/emscripten/wire.h
+++ b/system/include/emscripten/wire.h
@@ -210,6 +210,17 @@ namespace emscripten {
};
template<typename T>
+ struct BindingType<T&&> {
+ typedef typename BindingType<T>::WireType WireType;
+ static WireType toWireType(const T& v) {
+ return BindingType<T>::toWireType(v);
+ }
+ static T fromWireType(WireType wt) {
+ return BindingType<T>::fromWireType(wt);
+ }
+ };
+
+ template<typename T>
struct BindingType<T*> {
typedef T* WireType;
static WireType toWireType(T* p) {