Add helper types to make it easier to create a basic_json type with modified template parameters

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
barcode
2026-10-04 18:00:36 +02:00
committed by Niels Lohmann
parent 8c1f60a45e
commit c7a0d59e16
7 changed files with 127 additions and 77 deletions
+1 -10
View File
@@ -163,16 +163,7 @@ void int_to_string(alt_string& target, std::size_t value)
target = std::to_string(value).c_str();
}
using alt_json = nlohmann::basic_json <
std::map,
std::vector,
alt_string,
bool,
std::int64_t,
std::uint64_t,
double,
std::allocator,
nlohmann::adl_serializer >;
using alt_json = nlohmann::json::with_changed_string_t<alt_string>;
bool operator<(const char* op1, const alt_string& op2) noexcept
{