Skip to content

Commit

Permalink
add comment about SEGV on libc++
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 authored Jan 4, 2025
1 parent 2a7c46f commit f1ae4bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reference/future/future/wait_for.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ int main()
f.get(); // 一度値を取り出すと共有状態が破棄される

// 共有状態を持たない(valid() == falseな)futureでwaitをするとstd::future_error例外
// ただし、libc++では(少なくとも19.1.0までは)SEGVするので注意
try {
ready();
}
Expand Down

0 comments on commit f1ae4bc

Please sign in to comment.