aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-02-22 13:58:30 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:24:05 +0300
commit68845c447da1f53441e0399279c6cb99535d3076 (patch)
tree13ec508837c7a3e039f466ed9dce0ed140122142
parent7d1614a3ee806c5635d4c4d351611fba895fe02e (diff)
fix a syntax error
-rwxr-xr-xsystem/include/emscripten/bind.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h
index f4fe37af..1ef462bc 100755
--- a/system/include/emscripten/bind.h
+++ b/system/include/emscripten/bind.h
@@ -291,9 +291,6 @@ namespace emscripten {
);
}
-// template<typename PointerType>
-// void nullDeallocator(PointerType* p) {}
-
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);
@@ -668,12 +665,14 @@ namespace emscripten {
smart_ptr<SmartPtr>("SmartPtr");
- typename WithPolicies<>::template ArgTypeList<void, ConstructorArgs...> args;
+ typename WithPolicies<>::template ArgTypeList<void, Args...> args;
+ /*
_embind_register_class_smart_ptr_constructor(
TypeID<ClassType>::get(),
args.count,
args.types,
reinterpret_cast<GenericFunction>(&raw_smart_ptr_constructor
+ */
return *this;
}