Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24475

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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: