| 114 | virtual std::string ToString() const = 0; |
| 115 | |
| 116 | bool operator==(const StatusDetail& other) const noexcept { |
| 117 | return std::string(type_id()) == other.type_id() && ToString() == other.ToString(); |
| 118 | } |
| 119 | }; |
| 120 | |
| 121 | /// \brief A type trait to declare a given type as Status-compatible. |