-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Platforms 2017-03-06, Platforms 2017-04-17, Platforms 2017-05-08, Platforms 2017-12-04, Platforms 2017-12-18, Platforms 2018-01-01, Platforms 2018-01-15, Platforms 2018-03-26
The vast majority of the code in mongo/util/scopeguard.h is no longer necessary as it represents pre-C++14 approaches to building a guard class.
We should
- Write our own ScopeGuard class
- Write a makeGuard utility function that takes a callable
- Remove the BLOCK_EXIT macros
- Replace all uses of BLOCK_EXIT with a call to makeGuard
- is duplicated by
-
SERVER-19227 Re-implement ScopeGuard with C++11 facilities
- Closed
- related to
-
SERVER-53021 Directly define ScopeGuards: sunset makeGuard and ON_BLOCK_EXIT
- Backlog