[SERVER-40914] Add [[nodiscard]] to ScopeGuard Created: 30/Apr/19  Updated: 29/Oct/23  Resolved: 01/May/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.11

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-05-06
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 01/May/19 ]

Author:

{'email': 'ben.caimano@10gen.com', 'name': 'Ben Caimano'}

Message: SERVER-40914 Add [[nodiscard]] to ScopeGuard
Branch: master
https://github.com/mongodb/mongo/commit/2a7d030a0710e4ae3f380fc794de58a82a8527a9

Comment by Benjamin Caimano (Inactive) [ 30/Apr/19 ]

CR here

Generated at Thu Feb 08 04:56:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.