msgpack-c icon indicating copy to clipboard operation
msgpack-c copied to clipboard

MSVC versioning issues

Open tkozybski opened this issue 6 years ago • 1 comments

Hello. There's some macro definition issues with MSVC, because __cplusplus returns 199711L even for CPP17. _MSVC_LANG should be used for CPP14+.

tkozybski avatar Dec 14 '18 11:12 tkozybski

I checked C++ standard and MSVC reports incorrect value: image

But... it's known bug, that you have to "fix" with /Zc:__cplusplus flag: https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ - this is fucking ridiculous.

koxu1996 avatar Sep 01 '20 04:09 koxu1996