From 230b35dc157bc2eb40c4990d07b000dd6c423683 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 17 Nov 2024 11:19:20 +0100 Subject: [PATCH] :white_check_mark: add test for #4440 --- 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 93b2ca1d2..9da40e536 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -43,7 +43,7 @@ using ordered_json = nlohmann::ordered_json; #endif // for #4440 -#ifdef JSON_HAS_RANGES +#if JSON_HAS_RANGES == 1 #include #endif @@ -944,7 +944,7 @@ TEST_CASE("regression tests 2") CHECK(p.y == 2); } -#ifdef JSON_HAS_RANGES +#if JSON_HAS_RANGES == 1 SECTION("issue 4440") { auto noOpFilter = std::views::filter([](auto&&)