From cdb8876ff271ce235c2f02a917a0c79a37d5c4b0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Mar 2011 16:26:03 +0200 Subject: Change shared_ptr callback interface to work in mt-environment --- odb/details/shared-ptr/base.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'odb/details/shared-ptr/base.hxx') diff --git a/odb/details/shared-ptr/base.hxx b/odb/details/shared-ptr/base.hxx index e75fb4a..7cf44da 100644 --- a/odb/details/shared-ptr/base.hxx +++ b/odb/details/shared-ptr/base.hxx @@ -80,7 +80,10 @@ namespace odb struct refcount_callback { void* arg; - void (*zero_counter) (void*); + + // Return true if the object should be deleted, false otherwise. + // + bool (*zero_counter) (void*); }; private: -- cgit v1.1