From 74a37edfc99c8618e91d63349b74b79c1eaa81d6 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 18 Oct 2026 04:23:17 +0200 Subject: [PATCH] Keep the stream includes of json_view.hpp for IWYU json_view.hpp uses std::istream and std::ostream itself, but IWYU sees them through the exported json.hpp and asked to remove both includes, which fails ci_single_binaries (single_json_view). Signed-off-by: Niels Lohmann --- include/nlohmann/json_view.hpp | 4 ++-- single_include/nlohmann/json_view.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nlohmann/json_view.hpp b/include/nlohmann/json_view.hpp index b5af4852a..c412da4a1 100644 --- a/include/nlohmann/json_view.hpp +++ b/include/nlohmann/json_view.hpp @@ -28,12 +28,12 @@ #include // array #include // nullptr_t, size_t // IWYU pragma: keep #include // memcpy, strlen -#include // istream +#include // istream // IWYU pragma: keep #include // distance, input_iterator_tag, iterator_traits #include // map #include // unique_ptr #ifndef JSON_NO_IO - #include // ostream + #include // ostream // IWYU pragma: keep #endif #include // string #include // tuple_element, tuple_size // IWYU pragma: keep diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index a590c7fd5..ef0ff1439 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -28,12 +28,12 @@ #include // array #include // nullptr_t, size_t // IWYU pragma: keep #include // memcpy, strlen -#include // istream +#include // istream // IWYU pragma: keep #include // distance, input_iterator_tag, iterator_traits #include // map #include // unique_ptr #ifndef JSON_NO_IO - #include // ostream + #include // ostream // IWYU pragma: keep #endif #include // string #include // tuple_element, tuple_size // IWYU pragma: keep