| 29 | return true; |
| 30 | } |
| 31 | std::optional<uint64_t> ErrorCode::AsUnsigned() const { |
| 32 | return HasUnsigned() ? |
| 33 | std::optional{ std::get<uint64_t>(integral_) } : std::nullopt; |
| 34 | } |
| 35 | std::optional<int64_t> ErrorCode::AsSigned() const { |
| 36 | return HasSigned() ? |
| 37 | std::optional{ std::get<int64_t>(integral_) } : std::nullopt; |