In the following code snippet,
void foo() { std::this_thread::native_handle().... //error here } int main() { std::thread t1(foo); t1.join(); return 0; }
How do you get the native_handle from std::this_thread from within the function foo?
native_handle
std::this_thread
foo