From 78e8f4ccbb4cca5d8855f7cbd8b33e3e0d560498 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 a530bcd29..ab5cdb927 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 d0850df24..973301b73 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