[SERVER-59753] ScopeGuard is missing a deduction guide Created: 02/Sep/21  Updated: 29/Oct/23  Resolved: 04/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.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
is depended on by SERVER-59782 Migrate away from obsolete `makeGuard` Closed
Related
is related to SERVER-53021 Directly define ScopeGuards: sunset m... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2021-09-20
Participants:

 Description   

We don't need makeGuard anymore.
The constructor set for ScopeGuard isn't quite compatible with CTAD so we need to give it a little push in the right direction.

template <typename F>
ScopeGuard(F&&) -> ScopeGuard<std::decay_t<F>>;

This would enable simpler initializer syntax for ScopeGuard objects.

(forked from SERVER-53021)



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 03/Sep/21 ]

Author:

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

Message: SERVER-59753 deduction guide for ScopeGuard

Generated at Thu Feb 08 05:48:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.