From 3ffac6eb9deee851b5e792127916a1ac7552b2a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Feb 2013 13:10:15 +0200 Subject: QList::swap(Qlist) is only available since Qt 4.8 --- odb/qt/containers/list.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'odb/qt/containers/list.hxx') diff --git a/odb/qt/containers/list.hxx b/odb/qt/containers/list.hxx index c5f385f..5cd7168 100644 --- a/odb/qt/containers/list.hxx +++ b/odb/qt/containers/list.hxx @@ -8,6 +8,7 @@ #include #include // ODB_CXX11 +#include // QT_VERSION #include #ifdef ODB_CXX11 @@ -39,7 +40,10 @@ public: QOdbList(const QOdbList &x): vector_base (x), l_ (x.l_) {} // ~QOdbList(); QOdbList &operator=(const QOdbList &l); + +#if QT_VERSION >= 0x040800 void swap(QOdbList &other); +#endif #ifdef ODB_CXX11 QOdbList(QOdbList &&x): vector_base (std::move (x)), l_ (std::move (x.l_)) {} -- cgit v1.1