# This is a combination of 3 commits.

# This is the 1st commit message:

 add test for #4440

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

# Conflicts:
#	tests/src/unit-regression2.cpp

# This is the commit message #2:

 add test for #4440

# This is the commit message #3:

 add test for #4440

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann 2025-05-22 12:31:25 +02:00
parent b4a5a4fbbc
commit 6cbf2b205a
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -51,7 +51,7 @@ using ordered_json = nlohmann::ordered_json;
#endif #endif
// for #4440 // for #4440
#ifdef JSON_HAS_RANGES #if JSON_HAS_RANGES == 1
#include <ranges> #include <ranges>
#endif #endif
@ -1101,7 +1101,7 @@ TEST_CASE("regression tests 2")
#endif #endif
#ifdef JSON_HAS_RANGES #if JSON_HAS_RANGES == 1
SECTION("issue 4440") SECTION("issue 4440")
{ {
auto noOpFilter = std::views::filter([](auto&&) auto noOpFilter = std::views::filter([](auto&&)