aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-14 20:43:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-15 10:46:00 +0300
commit67ace86315805516472de3c8ef7857ff3f5d56ec (patch)
tree94a69c4245c3135da9652a7e6055ed1380a344f5
parent810d8974ce583f1b2a91d2b08499d710dc1c50f3 (diff)
Add noexcept to move constructors and move assignment operators
-rw-r--r--odb/qt/containers/list.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/odb/qt/containers/list.hxx b/odb/qt/containers/list.hxx
index 7fdec25..143deed 100644
--- a/odb/qt/containers/list.hxx
+++ b/odb/qt/containers/list.hxx
@@ -46,8 +46,14 @@ public:
#endif
#ifdef ODB_CXX11
- QOdbList(QOdbList &&x): vector_base (std::move (x)), l_ (std::move (x.l_)) {}
+ QOdbList(QOdbList &&x) noexcept
+ : vector_base (std::move (x)), l_ (std::move (x.l_)) {}
+
+ // Note: noexcept is not specified since it can throw while reallocating
+ // impl_.
+ //
QOdbList &operator=(QOdbList &&other);
+
#if defined(ODB_CXX11_INITIALIZER_LIST) && \
defined(Q_COMPILER_INITIALIZER_LISTS)
QOdbList(std::initializer_list<T> il): l_ (il) {}