[SERVER-38880] Support BSONObj comparisons in idl generated comparisons Created: 07/Jan/19  Updated: 29/Oct/23  Resolved: 11/Jan/19

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

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

Issue Links:
Depends
is depended on by SERVER-38873 Set up the create_indexes.idl in the ... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Security 2019-01-28
Participants:

 Description   

IDL generates operator== and other relational operators. BSONObj does not support operator== so IDL needs to generate relational operators with std::tie().

Also, std::tie() may cause GCC to hit the max template instantiation recursive depth of 256 when comparing large complicated structures.



 Comments   
Comment by Githook User [ 11/Jan/19 ]

Author:

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

Message: SERVER-38880 IDL relational comparison operators without std::tie()
Branch: master
https://github.com/mongodb/mongo/commit/73bce03305b2aa8c94d2400ffdb848ccb0f27588

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