diff options
Diffstat (limited to 'odb/boost/smart-ptr/lazy-ptr.hxx')
-rw-r--r-- | odb/boost/smart-ptr/lazy-ptr.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/boost/smart-ptr/lazy-ptr.hxx b/odb/boost/smart-ptr/lazy-ptr.hxx index 5050e16..ded4c74 100644 --- a/odb/boost/smart-ptr/lazy-ptr.hxx +++ b/odb/boost/smart-ptr/lazy-ptr.hxx @@ -136,6 +136,13 @@ namespace odb template <class Y> friend class lazy_shared_ptr; template <class Y> friend class lazy_weak_ptr; + // For lazy_weak_ptr::lock(). + // + lazy_shared_ptr (const ::boost::shared_ptr<T>& p, + const lazy_ptr_impl<T>& i) + : p_ (p), i_ (i) {} + + private: mutable ::boost::shared_ptr<T> p_; mutable lazy_ptr_impl<T> i_; }; |