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
commit382101ae725a0f6b97f0ecdba1023d7b63cd3157 (patch)
treea071a085e596cb587e4183335315be73c9df40fe
parent3b7669504da083bee96fa129fd64f79c4ea9b2f7 (diff)
Fix bug in lazy_ptr implementation
-rw-r--r--odb/lazy-ptr.ixx2
1 files changed, 1 insertions, 1 deletions
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 ();