From d885186c25b3fce64bb56468a1cd1ebdf8b4e348 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 23 Oct 2026 10:04:44 +0200 Subject: [PATCH] Export json_sax_dom_parser from the C++20 module for MSVC MSVC needs the detail classes that basic_json befriends to be visible in the module (#3970, as json_sax_dom_callback_parser); with its new template parameter, json_sax_dom_parser failed in ci_module_cpp20 (C2039, not a member of nlohmann::detail). Signed-off-by: Niels Lohmann --- src/modules/json.cppm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/json.cppm b/src/modules/json.cppm index ffc9e00e2..3917e0722 100644 --- a/src/modules/json.cppm +++ b/src/modules/json.cppm @@ -60,6 +60,7 @@ inline namespace json_literals namespace detail { using NLOHMANN_JSON_NAMESPACE::detail::json_sax_dom_callback_parser; + using NLOHMANN_JSON_NAMESPACE::detail::json_sax_dom_parser; using NLOHMANN_JSON_NAMESPACE::detail::unknown_size; } // namespace detail