aboutsummaryrefslogtreecommitdiff
path: root/odb/boost/smart-ptr/lazy-ptr.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/boost/smart-ptr/lazy-ptr.ixx')
-rw-r--r--odb/boost/smart-ptr/lazy-ptr.ixx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/boost/smart-ptr/lazy-ptr.ixx b/odb/boost/smart-ptr/lazy-ptr.ixx
index 3a6eae4..e3c423f 100644
--- a/odb/boost/smart-ptr/lazy-ptr.ixx
+++ b/odb/boost/smart-ptr/lazy-ptr.ixx
@@ -538,6 +538,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 ::boost::shared_ptr<T> lazy_weak_ptr<T>::
load () const
{