aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-02 12:34:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-03-02 12:34:54 +0200
commita22e79eec5c8fda1bbe5cce664d46f57a57f9076 (patch)
tree6751891d662870ce11ae908ce6ff82ed639bd99d
parent0533fe8d1a3d14c36be5349bd5ed630727d899c7 (diff)
Portability workarounds for incomplete C++11 support in VC++ and old GCC
-rw-r--r--odb/qt/smart-ptr/lazy-ptr.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/qt/smart-ptr/lazy-ptr.hxx b/odb/qt/smart-ptr/lazy-ptr.hxx
index 7000cf0..1744a46 100644
--- a/odb/qt/smart-ptr/lazy-ptr.hxx
+++ b/odb/qt/smart-ptr/lazy-ptr.hxx
@@ -167,7 +167,7 @@ public:
template <class X>
QLazySharedPointer (database_type&, const QWeakPointer<X>&);
-#ifdef ODB_CXX11
+#ifdef ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
template <class O = T>
#else
template <class O /* = T */>
@@ -339,7 +339,7 @@ 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
+#ifdef ODB_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGUMENT
template <class O = T>
#else
template <class O /* = T */>