I'm writing code that maybe run under c++03(or c++98), I want to know whether the function static variable initialization guranteed to be thread-safe:
void foo() {
static X x; // Is it thread-safe for the construction of x if foo() is called from multiple threads?
...
}