[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 |
| Comments |
| Comment by Githook User [ 10/May/22 ] |
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: |