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

Add [[nodiscard]] to ScopeGuard

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2019-05-06

      Our ScopeGuard class can easily become nodiscard to improve our correctness. In addition, its dtor method can now rely on noexcept dtor guarantees.

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: