aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-29 12:21:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-29 12:21:26 +0200
commit79f5097cf14843c046a6e811322c3f5dd6120b0e (patch)
treecc001b075378a1d808923f6e022e9be8e1915b33
parent5e8e87fcda559b90598131c8d82f87e3999f8081 (diff)
Fix bug in lazy_ptr implementation
-rw-r--r--odb/boost/smart-ptr/lazy-ptr.ixx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/boost/smart-ptr/lazy-ptr.ixx b/odb/boost/smart-ptr/lazy-ptr.ixx
index e3c423f..b592639 100644
--- a/odb/boost/smart-ptr/lazy-ptr.ixx
+++ b/odb/boost/smart-ptr/lazy-ptr.ixx
@@ -45,7 +45,7 @@ namespace odb
{
// If the pointer has expired but can be re-loaded, then don't throw.
//
- p_ = r.lock ();
+ p_ = r.lock ().get_eager ();
if (!p_ && !i_)
throw ::boost::bad_weak_ptr ();