2014-01-19から1日間の記事一覧

C++11 error C2280 (VC++ 2013のバグ)

・threadコンストラクタを介して右辺値参照を渡せないのはVC++の既知バグ(VC++ 2012でも同じ)であることをAlex KorbanのC++ Rocks(p.197)で知った // promiseをthreadコンストラクタに渡そうとするとエラーになる error C2280: 'std::promise<int>::promise(cons</int>…

C++11 thread_local (VC++ 2013)

VC++ Nov 2013 CTPでも標準のthread_localは、まだ未実装。 例えば thread_local int n → static __declspec(thread) int n とする。 gcc (Ubuntu)は、問題なし。