diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 124b089d7..c4b97cc5d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -111,3 +111,12 @@ jobs: run: cmake --build build --config Debug --parallel 10 - name: Test run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure + + ci_module_cpp20: + runs-on: windows-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Run CMake (Debug) + run: cmake -S . -B build -G "Visual Studio 17 2022" -DJSON_CI=ON -DCMAKE_CXX_FLAGS="/permissive- /std:c++latest /utf-8 /W4 /WX" + - name: Build + run: cmake --build build --config Debug --target ci_module_cpp20 diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 55ec39d24..c43fcd9cc 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 919b5fc43..0d2dd76f6 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -12903,6 +12903,8 @@ NLOHMANN_JSON_NAMESPACE_END // #include +// #include + // #include // #include