From 2a41b2487612c3e3b5f4b26d9eb3d1186ee0d47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 7 Feb 2023 19:10:23 +0300 Subject: [PATCH] =?UTF-8?q?mdbx++:=20=D1=83=D1=82=D0=BE=D1=87=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20`const`=20=D0=B8=20`noexcept`=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BD=D0=B5=D1=81=D0=BA=D0=BE=D0=BB=D1=8C=D0=BA?= =?UTF-8?q?=D0=B8=D1=85=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdbx.h++ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mdbx.h++ b/mdbx.h++ index 704688b9..47d2648f 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -2639,7 +2639,7 @@ public: return buffer(src, make_reference); } - static buffer key_from(const silo &&src) noexcept { + static buffer key_from(silo &&src) noexcept { return buffer(::std::move(src)); } @@ -3591,7 +3591,7 @@ public: void close(bool dont_sync = false); env_managed(env_managed &&) = default; - env_managed &operator=(env_managed &&other) { + env_managed &operator=(env_managed &&other) noexcept { if (MDBX_UNLIKELY(handle_)) MDBX_CXX20_UNLIKELY { assert(handle_ != other.handle_); @@ -3890,7 +3890,7 @@ class LIBMDBX_API_TYPE txn_managed : public txn { public: MDBX_CXX11_CONSTEXPR txn_managed() noexcept = default; txn_managed(txn_managed &&) = default; - txn_managed &operator=(txn_managed &&other) { + txn_managed &operator=(txn_managed &&other) noexcept { if (MDBX_UNLIKELY(handle_)) MDBX_CXX20_UNLIKELY { assert(handle_ != other.handle_); @@ -4112,7 +4112,7 @@ public: void close(); cursor_managed(cursor_managed &&) = default; - cursor_managed &operator=(cursor_managed &&other) { + cursor_managed &operator=(cursor_managed &&other) noexcept { if (MDBX_UNLIKELY(handle_)) MDBX_CXX20_UNLIKELY { assert(handle_ != other.handle_);