From fd8a090e28b4daa7b4cdb46123d52ef6f8f86d7d Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 21 Apr 2023 19:43:32 -0400 Subject: [PATCH] remove workaround for fixed msvc bug --- include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/common.h b/include/common.h index 665906e..e1805e4 100644 --- a/include/common.h +++ b/include/common.h @@ -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 operator T*() { static_assert(sizeof(T) < sizeof(DUMMY)); return (T*)DUMMY; }