diff options
Diffstat (limited to 'odb/pointer-traits.hxx')
-rw-r--r-- | odb/pointer-traits.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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: |