Cannot find std :: thread in msvc ++ 2010 express

I recently read about new new additions to C ++ that are very worried, and I already went through the new std :: unique_ptr and std :: shared_ptr objects, which are incredibly useful, and now I’m β€œI'm looking for this library of native threads, about which I heard, and I can’t find it anywhere. I read and went looking for thread.h and msv ++ 2010 Express does not seem to have it. Were the latest versions of msv ++ not related to this new thread library, or is it just express version that doesn’t come with it, or am I just stupid and have to search for a copy of it on the Internet? Currently I have to execute a thread through function windows, which I feel is difficult when you try to use a mutex, and they depend on the operating system, so I am very happy to find that the standard library implementation: \

+2
source share
3 answers

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 Visual Studio 11 Beta :

+4
source

None of the VS2010 releases ship with std::thread . Remember that VS2010 preceded the C ++ 11 standard.

You can try boost::thread as an alternative. The std::thread construct is an evolution from boost::thread , so you should not over-switch to std::thread when it becomes more widely implemented.

0
source

The VS2012 Beta due out this month will be better than the developer preview.

0
source

Source: https://habr.com/ru/post/957668/


All Articles