remove workaround for fixed msvc bug
This commit is contained in:
parent
aa00d9e789
commit
fd8a090e28
@ -88,7 +88,7 @@ void SpawnThread(const F& f) // works in DllMain unlike std thread
|
|||||||
}, copy, 0, nullptr));
|
}, copy, 0, nullptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct // should be inline but MSVC (linker) is bugged
|
inline struct
|
||||||
{
|
{
|
||||||
inline static BYTE DUMMY[100];
|
inline static BYTE DUMMY[100];
|
||||||
template <typename T> operator T*() { static_assert(sizeof(T) < sizeof(DUMMY)); return (T*)DUMMY; }
|
template <typename T> operator T*() { static_assert(sizeof(T) < sizeof(DUMMY)); return (T*)DUMMY; }
|
||||||
|
Loading…
Reference in New Issue
Block a user