#include int main() { int x; std::thread t([&]{x=42;}); x = 43; t.join(); return 0; }