You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1 seeing similar issue.
@XXxR4GALXxx I suspect this is because of MSVC non conforming preprocessor, which treats __VA_ARGS__ differently.
One idea I have, which you may try out is setting the /Zc:preprocessor flag - let me know if that works for you.
CC: @eieio any help/idea on making this work with MSVC as well by default? (nlohmann json seems to handle it with their macros, maybe could be taken as an inspiration?)
Could be handled gracefully by #24 if we add a PUBLIC /Zc:preprocessor (or /experimental:preprocessor, depending on MSVC version) compile options flag.
IMO best way to do it, no further changes required and MSVCs conformance is getting better and better over time
MSVC 2022 Result:
Wrote 8 bytes.
Warnings
CLANG LLVM Result:
Wrote 50 bytes.
why this not working with MSVC 2022?!
The text was updated successfully, but these errors were encountered: