From 7915f725f62d866cde7ee87778a0a71bfd920fa8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Feb 2012 13:09:14 +0200 Subject: Improve lazy pointer interface if C++11 is available --- odb/boost/smart-ptr/lazy-ptr.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/odb/boost/smart-ptr/lazy-ptr.hxx b/odb/boost/smart-ptr/lazy-ptr.hxx index 8df56e7..c2afe00 100644 --- a/odb/boost/smart-ptr/lazy-ptr.hxx +++ b/odb/boost/smart-ptr/lazy-ptr.hxx @@ -15,6 +15,7 @@ #include // odb::database #include #include +#include // ODB_CXX11 namespace odb { @@ -112,7 +113,11 @@ namespace odb template void reset (database_type&, std::auto_ptr&); template void reset (database_type&, const ::boost::shared_ptr&); +#ifdef ODB_CXX11 + template +#else template +#endif typename object_traits::id_type object_id () const; database_type& database () const; @@ -215,7 +220,11 @@ namespace odb // The object_id() function can only be called when the object is // persistent, or: expired() XOR loaded() (can use != for XOR). // +#ifdef ODB_CXX11 + template +#else template +#endif typename object_traits::id_type object_id () const; database_type& database () const; -- cgit v1.1