Merge pull request #463 from yuyaryshev/develop

Fix: added 'static' to thread_local variable in chaiscript/chaiscript…

Necessary to compile on VS
This commit is contained in:
Jason Turner 2018-11-15 09:33:07 -07:00 committed by GitHub
commit 8c7ea9bd32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ namespace chaiscript
/// does there is no possible way to recover
static std::unordered_map<const void*, T> &t() noexcept
{
thread_local std::unordered_map<const void *, T> my_t;
static thread_local std::unordered_map<const void *, T> my_t;
return my_t;
}
};