diff --git a/include/chaiscript/chaiscript_threading.hpp b/include/chaiscript/chaiscript_threading.hpp index 3875f9cf..9bfa44fc 100644 --- a/include/chaiscript/chaiscript_threading.hpp +++ b/include/chaiscript/chaiscript_threading.hpp @@ -107,7 +107,7 @@ namespace chaiscript /// does there is no possible way to recover static std::unordered_map &t() noexcept { - thread_local std::unordered_map my_t; + static thread_local std::unordered_map my_t; return my_t; } };