Is the thread header not available in the on site c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Is the thread header not available in the on site c++?

I want to use std::this_thread::sleep_for( std::chrono::milliseconds()). the compiler doesn't recognise it, even though i have included the thread header file (#include <thread>)? any working alternatives for the site?

11th Jul 2017, 3:21 PM
Anthony Mans
Anthony Mans - avatar
2 Answers
+ 7
Yeah, some C++11 features don't work well with Code Playground. :<
11th Jul 2017, 3:42 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
thats a shame. code i wanted to share wont work without it. hopefully they incorporate c++11 in the near future.
11th Jul 2017, 7:48 PM
Anthony Mans
Anthony Mans - avatar