| 41 | return std::holds_alternative<std::monostate>(integral_); |
| 42 | } |
| 43 | bool ErrorCode::Resolve(const IErrorCodeResolver& resolver) |
| 44 | { |
| 45 | if (!Empty() && HasTypeInfo()) { |
| 46 | pStrings_ = std::make_unique<IErrorCodeResolver::Strings>( |
| 47 | resolver.Resolve(std::type_index{ *pTypeInfo_ }, *this)); |
| 48 | return true; |
| 49 | } |
| 50 | pStrings_ = std::make_unique<IErrorCodeResolver::Strings>(); |
| 51 | return false; |
| 52 | } |
| 53 | bool ErrorCode::HasTypeInfo() const |
| 54 | { |
| 55 | return bool(pTypeInfo_); |
no outgoing calls