mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-14 11:40:35 +07:00
fast error_code access from uerror
This commit is contained in:
@@ -28,6 +28,7 @@ namespace meta_hpp
|
||||
[[nodiscard]] bool has_error() const noexcept;
|
||||
[[nodiscard]] explicit operator bool() const noexcept;
|
||||
|
||||
[[nodiscard]] error_code operator*() const noexcept;
|
||||
[[nodiscard]] error_code get_error() const noexcept;
|
||||
|
||||
void reset() noexcept;
|
||||
|
||||
@@ -29,6 +29,10 @@ namespace meta_hpp
|
||||
return has_error();
|
||||
}
|
||||
|
||||
inline error_code uerror::operator*() const noexcept {
|
||||
return error_;
|
||||
}
|
||||
|
||||
inline error_code uerror::get_error() const noexcept {
|
||||
return error_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user