Replace Loki MAKE_GUARD and ScopeGuard with homegrown C++11 versions

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Andrew Morrow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: