mirror of
https://github.com/build-cpp/cmkr
synced 2026-06-08 13:22:55 +00:00
add getter
This commit is contained in:
+3
-1
@@ -6,7 +6,9 @@ namespace cmkr::error {
|
||||
|
||||
Status::Status(Code ec) noexcept : ec_(ec) {}
|
||||
|
||||
Status::operator int() noexcept { return static_cast<int>(ec_); }
|
||||
Status::operator int() const noexcept { return static_cast<int>(ec_); }
|
||||
|
||||
Status::Code Status::code() const noexcept { return ec_; }
|
||||
|
||||
} // namespace cmkr::error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user