回答編集履歴
1
typo
answer
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
// Foo wrong(void)
|
10
10
|
Foo wrong() ;
|
11
11
|
|
12
|
-
`'std::__1::thread (bar2 (*)())' is not a structure or union `のメッセージをみると、`thread th3(bar2());`を、bar2を返却する関数ポインタを引数とし、threadを返却するthe3()
|
12
|
+
`'std::__1::thread (bar2 (*)())' is not a structure or union `のメッセージをみると、`thread th3(bar2());`を、bar2を返却する関数ポインタを引数とし、threadを返却する関数the3()の宣言と解釈しているのだと思います。
|
13
13
|
|
14
14
|
> thread th3{bar2()};
|
15
15
|
|