How to “activate” c++11 standard in visual studio 2010?

后端 未结 4 1662
走了就别回头了
走了就别回头了 2021-01-12 01:47

I am new to c++ programming and I need to use the Thread class in my VS 2010 project. I\'ve found this reference, but when I try the following:

#include <         


        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 02:28

    std::thread is obviously not in VS 2010. I think it was added with VS 2012, which is also supported by this question and answer. Is there any specific reason you're using 2010 rather than the latest version, 2013, which supports far more part of C++11?

    Also to note: Contrary to GCC, MSVC doesn't have an "opt-in" for newer standards. It just supports them out of the box as far as implemented.

提交回复
热议问题