aboutsummaryrefslogtreecommitdiff
path: root/odb/tr1/lazy-ptr.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/tr1/lazy-ptr.ixx')
-rw-r--r--odb/tr1/lazy-ptr.ixx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/tr1/lazy-ptr.ixx b/odb/tr1/lazy-ptr.ixx
index 45386bd..283118c 100644
--- a/odb/tr1/lazy-ptr.ixx
+++ b/odb/tr1/lazy-ptr.ixx
@@ -501,6 +501,13 @@ namespace odb
}
template <class T>
+ inline lazy_shared_ptr<T> lazy_weak_ptr<T>::
+ lock () const
+ {
+ return lazy_shared_ptr<T> (p_.lock (), i_);
+ }
+
+ template <class T>
inline std::tr1::shared_ptr<T> lazy_weak_ptr<T>::
load () const
{