'Sleep_for' is not a member of 'std :: this_thread' error because the version is too low

1. GCC compiler (full support from the compiler GCC4.8.X version)

  (1) the current C ++ 11 features, before becoming a C ++ 0X features of C ++ 11 gradually be supported from subsequent versions of GCC4.3.

  (2) it can be seen from the official information, the current from the full C ++ 11 characteristics of support from the compiler GCC4.8.X version.

  

  Reference URL: https: //gcc.gnu.org/projects/cxx-status.html#cxx11

2. Clang compiler

  Clang is written in C ++, based on LLVM, LLVM BSD license issued under the C / C ++ / Objective C / Objective C ++ compiler, the goal (one) is beyond the GCC.

  April 2013, Clang has full support for C ++ 11 standard, and begin to implement C ++ 1y characteristics (that is, C ++ 14, which is a small update version of C ++).

 

3. VS provides compiler MSVC:

  VS2013, provided most of the support for C ++ 11's,

  VS2015, provided support for almost all of the C ++ 11.

  Reference URL: VS2015 preview version of C ++ features 11/14/17

  https://blogs.msdn.microsoft.com/c/2015/01/29/vs2015c111417/

 

https://www.cnblogs.com/icmzn/p/5693765.html

Guess you like

Origin blog.csdn.net/sme000/article/details/91528290