From 6cbf2b205a0103269d7ac23e902e6bf37d2581db Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 22 May 2025 12:31:25 +0200 Subject: [PATCH] # This is a combination of 3 commits. # This is the 1st commit message: :white_check_mark: add test for #4440 Signed-off-by: Niels Lohmann # Conflicts: # tests/src/unit-regression2.cpp # This is the commit message #2: :white_check_mark: add test for #4440 # This is the commit message #3: :white_check_mark: add test for #4440 Signed-off-by: Niels Lohmann --- tests/src/unit-regression2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index bbffb50c0..ba95b224d 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -51,7 +51,7 @@ using ordered_json = nlohmann::ordered_json; #endif // for #4440 -#ifdef JSON_HAS_RANGES +#if JSON_HAS_RANGES == 1 #include #endif @@ -1101,7 +1101,7 @@ TEST_CASE("regression tests 2") #endif -#ifdef JSON_HAS_RANGES +#if JSON_HAS_RANGES == 1 SECTION("issue 4440") { auto noOpFilter = std::views::filter([](auto&&)