Boost総合スレ part10 (385レス)
上下前次1-新
14: 2012/09/30(日)11:17 AAS
以下のコードがgcc4.6.1でコンパイルエラーになるのですが、原因わかる方います?
当然ながらtestをmainの外に出せば問題ありません。
あと、VC8でも正常にコンパイルできています。
12 int main () {↲
13 class test {↲
14 public:↲
15 void func() {↲
16 printf("aaaa\n");↲
17 }↲
18 };↲
19 ↲
20 test t;↲
21 boost::thread th(&test::func, &t);↲
22 th.join();↲
23 return 0;↲
24 }↲
上下前次1-新書関写板覧索設栞歴
あと 371 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ
ぬこの手 ぬこTOP 0.006s