From 02013c7f0d56a58fd2ea119dbb4a740c3385f701 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 21 Aug 2026 03:00:18 +0200 Subject: [PATCH] Move the #4804 alias to the file that uses it The split left the json_4804 alias behind in unit-regression2.cpp while the test case that uses it went to unit-regression3.cpp, which does not build for C++17 and C++20 as a result. Signed-off-by: Niels Lohmann --- tests/src/unit-regression2.cpp | 16 ---------------- tests/src/unit-regression3.cpp | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index b5fb9d837..711dba063 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -42,22 +42,6 @@ using ordered_json = nlohmann::ordered_json; #elif __has_include() #include #endif - - ///////////////////////////////////////////////////////////////////// - // for #4804 - ///////////////////////////////////////////////////////////////////// - using json_4804 = nlohmann::basic_json, // BinaryType - void // CustomBaseClass - >; #endif #ifdef JSON_HAS_CPP_20 diff --git a/tests/src/unit-regression3.cpp b/tests/src/unit-regression3.cpp index db190f111..e9ae61a6a 100644 --- a/tests/src/unit-regression3.cpp +++ b/tests/src/unit-regression3.cpp @@ -42,6 +42,22 @@ using ordered_json = nlohmann::ordered_json; #elif __has_include() #include #endif + + ///////////////////////////////////////////////////////////////////// + // for #4804 + ///////////////////////////////////////////////////////////////////// + using json_4804 = nlohmann::basic_json, // BinaryType + void // CustomBaseClass + >; #endif #if JSON_HAS_RANGES == 1