optional: use #if instead of #ifndef, fixes #3859#4526
Conversation
🔴 Amalgamation check failed! 🔴The source code has not been amalgamated. @theodelrieu |
|
Welcome back! You need Astyle 3.1 to amalgamate. |
🔴 Amalgamation check failed! 🔴The source code has not been amalgamated. @theodelrieu |
|
Making 3.1 work on macOS is too much of a pain, I've edited the amalgamated file by hand 🤡 |
|
I downloaded it and built it myself. It's indeed a pain I hope to fix soon. |
So did I, but running it didn't do anything, which is why I tried to edit by hand, which doesn't seem to work either... |
|
We actually do check with in job |
|
Will check #3859 after merging. |
|
Seems that I don't have a Windows setup, so it'd be nice if a kind soul could take the burden. |
|
In - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
configuration: Release
platform: x86
CXX_FLAGS: "/W4 /WX"
CMAKE_OPTIONS: "-DJSON_ImplicitConversions=OFF"
GENERATOR: Visual Studio 16 2019to - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
configuration: Release
platform: x86
CXX_FLAGS: "/permissive- /std:c++latest /utf-8 /W4 /WX"
CMAKE_OPTIONS: "-DJSON_ImplicitConversions=OFF"
GENERATOR: Visual Studio 16 2019The AppVeyor build rules predate the |
|
Uff, AppVeyor is still failing... I will see if I can update the jobs there to the CI.cmake file. If I can't do this tomorrow, it will take some more time. |
|
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions! |
|
@nlohmann Has the AppVeyor build been fixed now? |
|
No. I'll have a look at it. Appveyor has been pretty neglected over the years. |
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
|
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions! |
|
@nlohmann Three of the four edits here are obsolete. Only the change in the test file still applies. |
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
|
(Last commit was wrong - I did more than conflict resolution.) |
Hi, it's been a while.
Just connected to Github and saw the optional-related issue, tests pass with
-DJSON_ImplicitConversions=OFF.