aboutsummaryrefslogtreecommitdiff
path: root/odb/pointer-traits.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-15 17:46:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-15 17:46:28 +0200
commit30b664c0561cc9f6d2bd24f7bce9b6c57fb52320 (patch)
tree743ce4a41249c8586e81a001cf147bedfbdf9a85 /odb/pointer-traits.hxx
parent93392ca601a0cab8517a4ca8d163df4b41dd3e49 (diff)
Add support for custom object pointers
New option: --default-pointer. New object pragma specifier: pointer.
Diffstat (limited to 'odb/pointer-traits.hxx')
-rw-r--r--odb/pointer-traits.hxx6
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: