msgpack / msgpack-c

MessagePack implementation for C and C++ / msgpack.org[C/C++]
Other
2.95k stars 872 forks source link

MSVC versioning issues #751

Open tkozybski opened 5 years ago

tkozybski commented 5 years ago

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

koxu1996 commented 3 years ago

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.