mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-01-01 03:12:23 +08:00
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:
commit
8c7ea9bd32
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user