这个年代了还有人用Windows XP SP2 x86,我也是醉了。。。
这个bug估计很少有人遇到吧。
std::mutex和std::thread不支持在Windows XP SP2 x86上运行,会报入下图的错误GetLogicalProcessorInformation找不到:
我是在visula studio 2015上面选择Visual Studio 2015 - Windows XP (v140_xp)这种模式和运行库选择:多线程 (/MT) 的时候遇到的。
去掉std::mutex和std::thread以后,就可以在Windows XP SP2 x86上运行了。
c++ lamada表达式貌似可以随便使用。
看了微软的2015 c++for xp的介绍: