From 67ace86315805516472de3c8ef7857ff3f5d56ec Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 14 Dec 2022 20:43:35 +0300 Subject: Add noexcept to move constructors and move assignment operators --- odb/qt/containers/list.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'odb/qt/containers') 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 il): l_ (il) {} -- cgit v1.1