From 35a98e771162c0801bc85fc9d12152a23d0216e4 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/qt/smart-ptr/lazy-ptr.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/odb/qt/smart-ptr/lazy-ptr.hxx b/odb/qt/smart-ptr/lazy-ptr.hxx index 9b22621..7000cf0 100644 --- a/odb/qt/smart-ptr/lazy-ptr.hxx +++ b/odb/qt/smart-ptr/lazy-ptr.hxx @@ -14,6 +14,7 @@ #include // odb::database #include #include +#include // ODB_CXX11 template class QLazyWeakPointer; @@ -166,7 +167,11 @@ public: template QLazySharedPointer (database_type&, const QWeakPointer&); +#ifdef ODB_CXX11 + template +#else template +#endif typename odb::object_traits::id_type objectId () const; @@ -334,7 +339,11 @@ public: // The objectId() function can only be called when the object is persistent, // or: toStrongRef().isNull() XOR loaded() (can use != for XOR). // +#ifdef ODB_CXX11 + template +#else template +#endif typename odb::object_traits::id_type objectId () const; -- cgit v1.1