-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS2017 compiler suggests using constexpr if #1204
Comments
Thanks for the info! Unfortunately, I am not sure what to do with it, because we target C++11, and |
VS2017 now properly supports feature testing macros, which others already have supported.
|
I would rather write a metafunction than introduce some ifdefs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fixed by merging #1272. |
I'm making a bug report, but it's not really a bug. It's something between a bug and a feature request. Basically, the MSVC compiler (latest version in VS2017) is suggesting to use
constexpr if
in the filesingle_include\nlohmann\json,hpp
on line 1966. The warning is:Also, on
single_include\nlohmann\json.hpp(1962)
(`962 is the line number):The text was updated successfully, but these errors were encountered: