diff options
author | Chad Austin <chad@imvu.com> | 2013-03-07 16:04:16 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:25:14 +0300 |
commit | 3ac210596939afee0397fac8d298975d2982bff1 (patch) | |
tree | 705c24712530b07f9ba2dd9e310e2842844c96ea | |
parent | 3dd168f24a0294e7f306514d0bb71985457ab976 (diff) |
Kill the custom bindingtype for shared_ptr :)
-rwxr-xr-x | system/include/emscripten/wire.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h index f782d49e..5126c4be 100755 --- a/system/include/emscripten/wire.h +++ b/system/include/emscripten/wire.h @@ -231,24 +231,6 @@ namespace emscripten { } }; - template<typename T> - struct BindingType<std::shared_ptr<T>> { - typedef std::shared_ptr<T> shared_ptr; - typedef std::shared_ptr<T>* WireType; - - static WireType toWireType(shared_ptr p) { - return new shared_ptr(p); - } - - static shared_ptr fromWireType(WireType wt) { - return *wt; - } - - static void destroy(WireType p) { - delete p; - } - }; - template<typename Enum> struct EnumBindingType { typedef Enum WireType; |