From 30b664c0561cc9f6d2bd24f7bce9b6c57fb52320 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Nov 2010 17:46:28 +0200 Subject: Add support for custom object pointers New option: --default-pointer. New object pragma specifier: pointer. --- odb/pointer-traits.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'odb/pointer-traits.hxx') diff --git a/odb/pointer-traits.hxx b/odb/pointer-traits.hxx index 18162e4..4c94709 100644 --- a/odb/pointer-traits.hxx +++ b/odb/pointer-traits.hxx @@ -25,13 +25,13 @@ namespace odb nop_guard () {} explicit - nop_guard (P) {} + nop_guard (const P&) {} void release () {} void - reset (P) {} + reset (const P&) {} }; // Default implementation that should work for any sensible smart @@ -69,7 +69,7 @@ namespace odb static bool null_ptr (const pointer& p) { - return get_ptr () == 0; + return get_ptr (p) == 0; } public: -- cgit v1.1