Commit c6994469 authored by Ronan's avatar Ronan
Browse files

fix(c-wrapper): use shared_from_this

parent 429a231c
......@@ -294,7 +294,7 @@ public:
return nullptr;
try {
return getCBackPtr(std::static_pointer_cast<CppType>(cppObject->sharedFromThis()));
return getCBackPtr(std::static_pointer_cast<CppType>(cppObject->shared_from_this()));
} catch (const std::bad_weak_ptr &e) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment