diff options
Diffstat (limited to 'odb/lazy-ptr-impl.hxx')
-rw-r--r-- | odb/lazy-ptr-impl.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/lazy-ptr-impl.hxx b/odb/lazy-ptr-impl.hxx index d51228a..58a1cd5 100644 --- a/odb/lazy-ptr-impl.hxx +++ b/odb/lazy-ptr-impl.hxx @@ -63,7 +63,7 @@ namespace odb typedef void* lazy_ptr_base::*unspecified_bool_type; operator unspecified_bool_type () const { - return id_ != 0 ? &lazy_ptr_base::id_ : 0; + return db_ != 0 ? &lazy_ptr_base::id_ : 0; } operator lazy_ptr_impl_ref (); |