mirror of
https://github.com/nlohmann/json
synced 2024-11-30 15:40:07 +00:00
✅ add test for #4440
This commit is contained in:
parent
b66f685f48
commit
230b35dc15
@ -43,7 +43,7 @@ using ordered_json = nlohmann::ordered_json;
|
||||
#endif
|
||||
|
||||
// for #4440
|
||||
#ifdef JSON_HAS_RANGES
|
||||
#if JSON_HAS_RANGES == 1
|
||||
#include <ranges>
|
||||
#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&&)
|
||||
|
Loading…
Reference in New Issue
Block a user