[SERVER-68376] IDL: don't emit optional get and is_initialized calls Created: 27/Jul/22  Updated: 29/Oct/23  Resolved: 28/Jul/22

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

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

Issue Links:
Depends
depends on SERVER-68246 change calls to `boost::optional` mem... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-08-08
Participants:

 Description   

Change the IDL so that it generates .value and .has_value instead of .get and .is_initialized, in accordance with SERVER-68246.

Or better yet just operator bool and operator*



 Comments   
Comment by Githook User [ 28/Jul/22 ]

Author:

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

Message: SERVER-68376 make IDL-generated code compatible with boost or std optional
Branch: master
https://github.com/mongodb/mongo/commit/ac71e4974a705ba7e29dabe9d8f6d4bdbc3113e1

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