diff options
Diffstat (limited to 'odb/shared-ptr/base.hxx')
-rw-r--r-- | odb/shared-ptr/base.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/shared-ptr/base.hxx b/odb/shared-ptr/base.hxx index 6fdc32e..4766aa7 100644 --- a/odb/shared-ptr/base.hxx +++ b/odb/shared-ptr/base.hxx @@ -68,8 +68,19 @@ namespace odb void operator delete (void*) throw (); + struct refcount_callback + { + void* arg; + void (*zero_counter) (void*); + }; + + private: + bool + _dec_ref_callback (); + protected: std::size_t counter_; + refcount_callback* callback_; }; template <typename X> |