[SERVER-23587] Destructors are no-throw by default in C++11 Created: 06/Apr/16  Updated: 06/Dec/22  Resolved: 16/Apr/19

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

Type: Improvement Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: DO NOT USE - Backlog - Dev Tools
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Developer Tools
Participants:

 Description   

Some types in the codebase have destructors marked with throw(), which is redundant and prevents MSVC from generating defaults for these methods.

See DBException.



 Comments   
Comment by Billy Donahue [ 16/Apr/19 ]

I don't see any `throw()` on destructors.
No macros contain it. Maybe they've been swept up?

git grep -n 'throw\s*()' src/mongo

No destructors.
I think we can close this.

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