You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the C++ output of quicktype is asymmetrical: boolean, integer, string and array1 types are comparable for equality, but the classes generated for JSON objects aren't. Equality comparison is important to detect if a message's contents are different from a previous one.
Add equality operators to each class (or struct, depending on the configuration), the equality should simply compare each member and perform logical AND on their results:
Currently the C++ output of quicktype is asymmetrical: boolean, integer, string and array1 types are comparable for equality, but the classes generated for JSON objects aren't. Equality comparison is important to detect if a message's contents are different from a previous one.
Context (Input, Language)
Output Language: C++
Current Behaviour / Output
Proposed Behaviour / Output
Add equality operators to each class (or struct, depending on the configuration), the equality should simply compare each member and perform logical AND on their results:
Footnotes
if the contained type is also comparable ↩
The text was updated successfully, but these errors were encountered: