remove workaround for fixed msvc bug

This commit is contained in:
Akash Mozumdar 2023-04-21 19:43:32 -04:00
parent aa00d9e789
commit fd8a090e28

View File

@ -88,7 +88,7 @@ void SpawnThread(const F& f) // works in DllMain unlike std thread
}, copy, 0, nullptr));
}
static struct // should be inline but MSVC (linker) is bugged
inline struct
{
inline static BYTE DUMMY[100];
template <typename T> operator T*() { static_assert(sizeof(T) < sizeof(DUMMY)); return (T*)DUMMY; }