mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
shared_ptr.hpp: minor optimization (GCC hotfix)
Use thread_local for dummy objects (doesn't work on MSVC). Couldn't find better way to remove fake static objects completely. In a sense that they don't appear in object files.
This commit is contained in:
parent
d10584ac6c
commit
332c512eed
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,12 @@ namespace stx
|
|||
};
|
||||
|
||||
template <typename T>
|
||||
static const fake_t<std::remove_cv_t<T>> sample{};
|
||||
#ifdef _MSC_VER
|
||||
static const
|
||||
#else
|
||||
static thread_local const
|
||||
#endif
|
||||
fake_t<std::remove_cv_t<T>> sample{};
|
||||
}
|
||||
|
||||
template <typename X, typename Y>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue