Commit 15da11fc authored by Dominik Charousset's avatar Dominik Charousset

Add missing comparison operators

parent b877c738
......@@ -58,6 +58,16 @@ struct down_msg {
error reason;
};
/// @relates down_msg
inline bool operator==(const down_msg& x, const down_msg& y) noexcept {
return x.source == y.source && x.reason == y.reason;
}
/// @relates down_msg
inline bool operator!=(const down_msg& x, const down_msg& y) noexcept {
return !(x == y);
}
/// @relates down_msg
template <class Inspector>
typename Inspector::result_type inspect(Inspector& f, down_msg& x) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment