Use json::with_integers_t in the test and the docs

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-10-13 18:57:59 +02:00
1 parent 45b837885e
commit 735a20e36d
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -13,7 +13,6 @@
#include <cstdint>
#include <functional>
#include <limits>
#include <map>
#include <string>
#include <vector>
@@ -24,7 +23,7 @@ namespace
{
template<typename IntegerType>
using same_types_json = nlohmann::basic_json<std::map, std::vector, std::string, bool, IntegerType, IntegerType, double>;
using same_types_json = nlohmann::json::with_integers_t<IntegerType, IntegerType>;
using json64 = same_types_json<std::int64_t>;
using json32 = same_types_json<std::int32_t>;