Skip to content

Commit 4796c01

Browse files
committed
promiseデストラクタの効果に例外を格納する動作を追記 #1270
1 parent 970a04c commit 4796c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/future/promise/op_destructor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515

1616
## 効果
17-
共有状態を放棄する
18-
17+
- 共有状態を持っていればそれを解放する。
18+
- ただし、持っている共有状態が準備完了状態([`future_status::ready`](../future_status.md))でなければ、error conditionとして[`broken_promise`](../future_errc.md)を持つ[`future_error`](../future_error.md)例外オブジェクトを格納して、準備完了状態にしたのち、それを解放する。
1919

2020
##
2121
```cpp

0 commit comments

Comments
 (0)