[SERVER-71999] Add explicit constructor to fix C++20 compilation in BucketCatalog Created: 09/Dec/22  Updated: 29/Oct/23  Resolved: 09/Dec/22

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

Type: Bug Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-12-12
Participants:
Linked BF Score: 51

 Description   

C++20 changes the rules around aggregate initialization, so that if a struct/class has a deleted default constructor (e.g. if one of the members cannot be default constructed), then the struct isn't eligible for aggregate initialization.



 Comments   
Comment by Githook User [ 09/Dec/22 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-71999 Add explicit constructor to fix C++20 compilation in BucketCatalog
Branch: master
https://github.com/mongodb/mongo/commit/83edc712a4bf44fe42b496b1ab52a6e96af511c4

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