aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rwxr-xr-xsystem/include/emscripten/bind.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h
index e8f21be4..9120a095 100755
--- a/system/include/emscripten/bind.h
+++ b/system/include/emscripten/bind.h
@@ -275,8 +275,11 @@ namespace emscripten {
}
template<typename PointerType>
- typename std::shared_ptr<PointerType> raw_smart_pointer_constructor(PointerType *ptr, std::shared_ptr<PointerType> basePtr, void (PointerType*)) {
- return std::shared_ptr<PointerType>(basePtr, ptr);
+ typename std::shared_ptr<PointerType>* raw_smart_pointer_constructor(
+ PointerType *ptr,
+ std::shared_ptr<PointerType>* basePtr
+ ) {
+ return new std::shared_ptr<PointerType>(*basePtr, ptr);
}
template<typename ClassType>