When trying to compile the following code
#include #include void foo() { std::cout << \"foo\\n\"; } int main() { st
When you get a compiler that supports std::thread here is your corrected example (two minor type-o's):
std::thread
#include #include void foo() { std::cout << "foo\n"; } int main() { std::thread t(foo); t.join(); }