Are C++11 thread_local variables automatically static?
According to the C++ Standard When thread_local is applied to a variable of block scope the storage-class-specifier static is implied if it does not appear explicitly So it means that this definition void f() { thread_local vector<int> V; V.clear(); … // use V as a temporary variable } is equivalent to void f() { static … Read more