[SERVER-66093] Remove decltype(auto) from generated IDL Created: 29/Apr/22  Updated: 29/Oct/23  Resolved: 10/May/22

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

Type: Bug 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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2022-05-16
Participants:

 Description   

Use of decltype(auto) is unnecessary in generated IDL files since they are generated by machine and have simple type names (i.e. they are not impossible to declare like lambra related types). The use of` decltype(auto) makes the generated code harder to read for human readers as users must jump to the declaration with decltype(auto) and then a second declaration for the actual type.

This change was introduced SERVER-58110



 Comments   
Comment by Githook User [ 10/May/22 ]

Author:

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

Message: SERVER-66093 Improve readability of IDL generated C++ code
Branch: master
https://github.com/mongodb/mongo/commit/97dc398d9aa75e88750e46cc478baab62700e47b

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