diff options
Diffstat (limited to 'odb/lazy-ptr.hxx')
-rw-r--r-- | odb/lazy-ptr.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/lazy-ptr.hxx b/odb/lazy-ptr.hxx index 5e099aa..ccc6c3c 100644 --- a/odb/lazy-ptr.hxx +++ b/odb/lazy-ptr.hxx @@ -519,6 +519,12 @@ 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 (std::shared_ptr<T>&& p, const lazy_ptr_impl<T>& i) + : p_ (std::move (p)), i_ (i) {} + + private: mutable std::shared_ptr<T> p_; mutable lazy_ptr_impl<T> i_; }; |