Skip to content

Commit f1ae4bc

Browse files
authored
add comment about SEGV on libc++
1 parent 2a7c46f commit f1ae4bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference/future/future/wait_for.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ int main()
101101
f.get(); // 一度値を取り出すと共有状態が破棄される
102102

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

0 commit comments

Comments
 (0)