aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/qt/smart-ptr/lazy-ptr.hxx9
1 files changed, 9 insertions, 0 deletions
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/forward.hxx> // odb::database
#include <odb/traits.hxx>
#include <odb/lazy-ptr-impl.hxx>
+#include <odb/details/config.hxx> // ODB_CXX11
template <class T>
class QLazyWeakPointer;
@@ -166,7 +167,11 @@ public:
template <class X>
QLazySharedPointer (database_type&, const QWeakPointer<X>&);
+#ifdef ODB_CXX11
+ template <class O = T>
+#else
template <class O /* = T */>
+#endif
typename odb::object_traits<O>::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 <class O = T>
+#else
template <class O /* = T */>
+#endif
typename odb::object_traits<O>::id_type
objectId () const;