From 45571dd57a8f44b982956643944d317ef71c8902 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 May 2013 19:22:51 -0400 Subject: Add ability to get underlying eager pointer in weak pointers --- odb/boost/smart-ptr/lazy-ptr.ixx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'odb/boost/smart-ptr/lazy-ptr.ixx') diff --git a/odb/boost/smart-ptr/lazy-ptr.ixx b/odb/boost/smart-ptr/lazy-ptr.ixx index 0de602c..b695787 100644 --- a/odb/boost/smart-ptr/lazy-ptr.ixx +++ b/odb/boost/smart-ptr/lazy-ptr.ixx @@ -221,6 +221,13 @@ namespace odb } template + inline ::boost::shared_ptr lazy_shared_ptr:: + get_eager () const + { + return p_; + } + + template template inline lazy_shared_ptr:: lazy_shared_ptr (DB& db, const ID& id): i_ (db, id) {} @@ -555,6 +562,13 @@ namespace odb } template + inline ::boost::weak_ptr lazy_weak_ptr:: + get_eager () const + { + return p_; + } + + template template inline lazy_weak_ptr:: lazy_weak_ptr (DB& db, const ID& id): i_ (db, id) {} -- cgit v1.1