質問するログイン新規登録

回答編集履歴

1

typo

2017/03/05 17:26

投稿

Chironian
Chironian

スコア23274

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