nemequ / hedley

A C/C++ header to help move #ifdefs out of your code
https://nemequ.github.io/hedley/
Creative Commons Zero v1.0 Universal
774 stars 51 forks source link

VS 2019 'argument to a feature-test macro must be a simple identifier' error #60

Open bharaths-ncircletech opened 1 year ago

bharaths-ncircletech commented 1 year ago

Hi,

When used as a part of 'nlohmann/json' following error is coming Error: 'argument to a feature-test macro must be a simple identifier' File: hedley.hpp Line: 1708 (please refer the image)

Visual Studio: 2019 C++: 17 Project Info: AddOn migration from ArchiCAD 26 to ArchiCAD 27 - Tech Preview Version

I started learning C++ and for one of our migration projects we use this. Please suggest a resolution that can be implemented.

Hedley-JSON Library Issue 01

I know this is similar to one of the previous issues, but I don't know how this can be solved. Let me know if any further information is needed.

Thanks & Regards

nemequ commented 3 weeks ago

Hey, thanks for filing this. Sorry it took so long for me to get around to looking at it…

We have a CI build for VS 2019 and the fallthrough test doesn't complain. Are you still able to reproduce this problem? If so would it be possible to provide the compiler flags, and a complete version number (just run cl.exe without any arguments, it should print the version)?