From 79f5097cf14843c046a6e811322c3f5dd6120b0e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 29 Nov 2015 12:21:26 +0200 Subject: Fix bug in lazy_ptr implementation --- odb/boost/smart-ptr/lazy-ptr.ixx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb') 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 (); -- cgit v1.1