[SERVER-31705] IDL should automatically create == and != operators Created: 24/Oct/17  Updated: 30/Oct/23  Resolved: 12/Dec/17

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: 3.7.1

Type: Improvement Priority: Major - P3
Reporter: Judah Schvimer Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-30763 Add support for relops in idl generat... Closed
Related
related to SERVER-55257 IDL generates non-compiling compariso... Backlog
is related to SERVER-31356 make OplogEntry immutable Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-01-01
Participants:

 Description   

IDL types almost always are equal if all of their fields are equal.



 Comments   
Comment by Githook User [ 05/Apr/18 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-31705 idl refactor relops, generate all 6.

  • Add definitions for >, <=, >= to round out the relational algebra.
  • Change relational ops to in-class friend definitions, which means
    they won't be visible or interfere with the overload set on every
    relational op associated with namespace 'mongo::'.
Comment by Billy Donahue [ 05/Apr/18 ]

Generated C++ is missing a #include <tuple>.

Comment by Githook User [ 12/Dec/17 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-31705 IDL Generate Equality and Less than comparison operators
Branch: master
https://github.com/mongodb/mongo/commit/143093d6a23b1b84274461bebb9e88e11b4f2a2f

Comment by Judah Schvimer [ 25/Oct/17 ]

That seems reasonable.

Comment by Andy Schwerin [ 25/Oct/17 ]

Should this be opt-in behavior?

Generated at Thu Feb 08 04:27:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.