[SERVER-81394] replace `invariant` etc uses of boost/preprocessor Created: 24/Sep/23  Updated: 29/Oct/23  Resolved: 28/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-81397 IDL: replace kNum${enumType} with gen... Closed
is related to SERVER-81059 everything now includes <boost/prepro... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SERVER-81567 Replace all remaining boost/preproces... Sub-task Closed Billy Donahue  
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-10-02
Participants:

 Description   

These are very simple dispatches among small argument counts ( <= 4 ) and can be implemented easily inline instead of bringing in a boost dependency.

Since invariant and assert utils are used so widely this should be a beneficial change.
We were also seeing IWYU getting confused (SERVER-81059) by it and wanting to include a deep preprocessor iif.hpp in every file and this should eliminate that.



 Comments   
Comment by Githook User [ 28/Sep/23 ]

Author:

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

Message: SERVER-81394 replace uses of Boost.Overload with local macros
Branch: master
https://github.com/mongodb/mongo/commit/b5179418eaca43232ad29632792c6bebdde4ff37

Generated at Thu Feb 08 06:46:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.