remove noexcept keywords, since exception is disabled in CMakeLists.txt file

This commit is contained in:
Khobaib 2025-01-24 17:37:52 +06:00 committed by GitHub
parent 23e35d792b
commit 9a3ca43686
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}