From 382101ae725a0f6b97f0ecdba1023d7b63cd3157 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/lazy-ptr.ixx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odb/lazy-ptr.ixx b/odb/lazy-ptr.ixx index 0cc03f5..ccd95cc 100644 --- a/odb/lazy-ptr.ixx +++ b/odb/lazy-ptr.ixx @@ -937,7 +937,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 std::bad_weak_ptr (); -- cgit v1.1