Compares two diagnostics objects.
bool operator==( const diagnostics& lhs, const diagnostics& rhs);
No-throw guarantee.