Skip to content

Commit

Permalink
Justify terminate() calls (#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGuteniev authored Aug 1, 2023
1 parent 2c2cac5 commit 19528fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stl/inc/exception
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public:
if (_Exc) {
_STD rethrow_exception(_Exc);
} else {
_STD terminate();
_STD terminate(); // per N4950 [except.nested]/4
}
}

Expand Down
4 changes: 2 additions & 2 deletions stl/inc/thread
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ public:

~thread() noexcept {
if (joinable()) {
_STD terminate();
_STD terminate(); // per N4950 [thread.thread.destr]/1
}
}

thread(thread&& _Other) noexcept : _Thr(_STD exchange(_Other._Thr, {})) {}

thread& operator=(thread&& _Other) noexcept {
if (joinable()) {
_STD terminate();
_STD terminate(); // per N4950 [thread.thread.assign]/1
}

_Thr = _STD exchange(_Other._Thr, {});
Expand Down

0 comments on commit 19528fa

Please sign in to comment.