Answer the question
In order to leave comments, you need to log in
Why can't I use the thread library?
I'm trying to use the thread library, but it gives an error:
error: this_thread' has not been declared
Code:
#include <iostream>
#include<thread>
#include <chrono>
using namespace std;
int main()
{
cout << this_thread::get_id()<<endl;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question