VC++ 2008 で vector などの問題を修正する hotfix
VC++ 2008 SP1 で vector などの問題を修正する hotfix が公開されています。
- VC 2008 SP1: Problems with STL/TR1 after installing VS2008 SP1
- Visual C++ Team Blog : VC9 SP1 Hotfix For The vector<function<FT>> Crash
以下の問題が修正されるようですので、影響がありそうなら適用しておきましょう。
This hotfix actually fixes 5 bugs:
1. function
::swap() was broken by the Small Functor Optimization in VC9 TR1 (the Feature Pack). This broke vector > in VC9 SP1. "Broken" meant "compiling but crashing". 2. vector
> nonconformantly required X to have a default constructor. (This is a specific example of a general bug: vector >, vector >>, etc. were also affected.) 3. vector
> nonconformantly required X and Y to have default constructors. (This is a specific example of a general bug, see above.) 4. vector
> nonconformantly required X to have a default constructor. 5. Random distributions were broken, triggering infinite loops and emitting bogus results.