can't seem to find std::thread in msvc++ 2010 express

I've been reading about various new additions to c++ recently that i'm really excited about and i've already been through the new std::unique_ptr and std::shared_ptr objects, which are incredibly useful, and now i'm looking for that native thread library i've heard about and can't seem to find it anywhere. I was reading and went looking for thread.h and msvc++ 2010 express doesn't seem to have it. Did the newest versions of msvc++ not come with this new thread library, or is it just the express version that doesn't come with it, or am i just being silly and have to go looking for a copy of it on the internet? I currently have to do threading via windows functions which i feel are overcomplicated when trying to use mutexes and they're also operating system specific, so i'm really excited to find this standard library implementation :


Not all C++11 changes are in the Visual C++ 2010 compiler. You will need to use boost::thread or just::thread as alternatives, or use the Visual Studio 11 Beta:


None of the editions of VS2010 come with std::thread . Remember that VS2010 pre-dated the C++11 standard.

You could try boost::thread as an alternative. The design of std::thread is an evolution from boost::thread and so it should not be too traumatic to switch to std::thread when it becomes more widely implemented.


VS2012 Beta应该会在本月发布,会比开发者预览更好。

链接地址: http://www.djcxy.com/p/78924.html

上一篇: 用WinSock2进行开发,CreateThread()函数出错

下一篇: 似乎无法在msvc ++ 2010 express中找到std :: thread