From 9a3ca43686b1b7f5563039797dc56234b71235ba Mon Sep 17 00:00:00 2001 From: Khobaib <150820696+khobaib529@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:37:52 +0600 Subject: [PATCH] remove noexcept keywords, since exception is disabled in CMakeLists.txt file --- include/leveldb/status.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/leveldb/status.h b/include/leveldb/status.h index e3273144e4..ddcbd182b9 100644 --- a/include/leveldb/status.h +++ b/include/leveldb/status.h @@ -24,14 +24,14 @@ namespace leveldb { class LEVELDB_EXPORT Status { public: // Create a success status. - Status() noexcept : state_(nullptr) {} + Status() : state_(nullptr) {} ~Status() { delete[] state_; } Status(const Status& rhs); Status& operator=(const Status& rhs); - Status(Status&& rhs) noexcept : state_(rhs.state_) { rhs.state_ = nullptr; } - Status& operator=(Status&& rhs) noexcept; + Status(Status&& rhs) : state_(rhs.state_) { rhs.state_ = nullptr; } + Status& operator=(Status&& rhs); // Return a success status. static Status OK() { return Status(); } @@ -112,7 +112,7 @@ inline Status& Status::operator=(const Status& rhs) { } return *this; } -inline Status& Status::operator=(Status&& rhs) noexcept { +inline Status& Status::operator=(Status&& rhs) { std::swap(state_, rhs.state_); return *this; }