-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Service Arch 2021-09-20
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)
- is depended on by
-
SERVER-59782 Migrate away from obsolete `makeGuard`
- Closed
- is related to
-
SERVER-53021 Directly define ScopeGuards: sunset makeGuard and ON_BLOCK_EXIT
- Backlog