diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-18 11:15:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-18 11:15:37 +0200 |
commit | b2b8dba6c149407d6657398a874c75629871d21a (patch) | |
tree | 587f30ada0847768fef5835589b9568f01285638 /odb/lazy-ptr-impl.hxx | |
parent | abd2a4b899f16e2565c7db534ec558fec27173ff (diff) |
Fix loaded() function in lazy_ptr to conform to documentation
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 (); |