Skip to content

Commit

Permalink
remove noexcept keywords, since exception is disabled in CMakeLists.t…
Browse files Browse the repository at this point in the history
…xt file
  • Loading branch information
khobaib529 authored Jan 24, 2025
1 parent 23e35d7 commit 9a3ca43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/leveldb/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9a3ca43

Please sign in to comment.