aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-14 19:56:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-14 19:56:49 +0300
commitc4af69edffa45f6ed0501836d1e298347d472ed3 (patch)
tree49efba2e416b2413e4db6dbe629445cbcb93f714
parent0a817f97de2630ce987f38bf66d54f4e9dcd088d (diff)
Add noexcept to move constructors and move assignment operators
-rw-r--r--odb/oracle/auto-handle.hxx4
-rw-r--r--odb/oracle/database.hxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/odb/oracle/auto-handle.hxx b/odb/oracle/auto-handle.hxx
index ca8bcc3..4da1cdd 100644
--- a/odb/oracle/auto-handle.hxx
+++ b/odb/oracle/auto-handle.hxx
@@ -127,8 +127,8 @@ namespace odb
}
#ifdef ODB_CXX11
- auto_handle (auto_handle&& ah): h_ (ah.release ()) {}
- auto_handle& operator= (auto_handle&& ah)
+ auto_handle (auto_handle&& ah) noexcept: h_ (ah.release ()) {}
+ auto_handle& operator= (auto_handle&& ah) noexcept
{
if (this != &ah)
reset (ah.release ());
diff --git a/odb/oracle/database.hxx b/odb/oracle/database.hxx
index 90494a2..0b66999 100644
--- a/odb/oracle/database.hxx
+++ b/odb/oracle/database.hxx
@@ -81,6 +81,9 @@ namespace odb
// Move-constructible but not move-assignable.
//
+ // Note: noexcept is not specified since odb::database(odb::database&&)
+ // can throw.
+ //
#ifdef ODB_CXX11
database (database&&);
#endif