• Simon Morlat's avatar
    Simplify HybridObject, add documentation and new test cases. · f531a67e
    Simon Morlat authored
    There is no need to inherit from std::enable_shared_from_this; and this was causing problems as HybridObject may not always be contained in a shared_ptr (case where creation is triggered by C code).
    Instead, since the refcounting is done by the HybridObject, it is easy to instanciate shared_ptr<> automatically calling unref(), at any time, when needed.
    f531a67e
object_tester.cc 7.24 KB