Niels Lohmann
45b837885e
Allow the same type for number_integer_t and number_unsigned_t
...
basic_json did not compile with NumberUnsignedType == NumberIntegerType
because overloads on both types collided. Such a basic_json now stores
every integer as number_integer: the colliding overloads take a
placeholder type, unsigned C++ integers are converted to number_integer_t,
and value_t::number_unsigned maps to number_integer.
Also fixes two problems this configuration would hit: the unsigned
integer parser accepted values that wrap around to negative numbers, and
dump() overflowed when computing the absolute value of the minimum.
A repeated NumberFloatType gets a static_assert.
Refs #2573
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2026-10-13 18:57:07 +02:00
..
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-07-04 11:13:25 +02:00
2026-10-04 12:00:31 +02:00
2026-10-11 08:21:41 +02:00
2025-04-05 18:54:35 +02:00
2026-10-04 11:46:52 +02:00
2026-10-02 11:32:15 +02:00
2026-10-09 16:56:14 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-07 07:38:24 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:21:51 +02:00
2026-10-11 08:21:51 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-12 09:33:43 +02:00
2026-10-04 12:13:49 +02:00
2026-10-02 11:32:15 +02:00
2026-10-04 11:46:25 +02:00
2026-10-02 11:32:15 +02:00
2025-01-17 06:53:35 +01:00
2026-10-02 11:32:15 +02:00
2026-10-04 11:46:32 +02:00
2026-10-11 08:21:51 +02:00
2024-12-09 23:02:30 +01:00
2026-10-11 08:21:51 +02:00
2026-10-02 11:32:15 +02:00
2026-07-09 17:24:19 +02:00
2026-10-11 08:21:51 +02:00
2026-10-11 08:21:51 +02:00
2026-10-11 08:21:51 +02:00
2026-10-11 08:21:51 +02:00
2026-10-11 08:21:51 +02:00
2026-10-11 08:21:51 +02:00
2025-04-05 18:54:35 +02:00
2026-10-02 11:32:15 +02:00
2026-06-29 22:15:18 +02:00
2024-12-09 23:02:30 +01:00
2024-12-06 18:38:25 +01:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-12 09:33:43 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-06-29 22:15:18 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2025-04-05 18:54:35 +02:00
2025-04-05 18:54:35 +02:00
2026-10-13 18:57:07 +02:00
2026-06-29 22:15:18 +02:00
2026-10-02 11:32:15 +02:00
2025-04-05 18:54:35 +02:00
2026-10-02 11:32:15 +02:00
2025-04-05 18:54:35 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:21:51 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-12 09:33:43 +02:00
2026-10-12 09:33:43 +02:00
2026-10-04 11:57:41 +02:00
2026-10-04 17:53:29 +02:00
2026-10-04 17:53:29 +02:00
2026-10-13 18:57:07 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:24:31 +02:00
2026-07-04 11:13:25 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 17:25:17 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:21:41 +02:00
2026-10-02 11:32:15 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-09-30 22:15:20 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:21:41 +02:00
2026-10-11 08:21:41 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-07 07:38:24 +02:00
2026-10-02 11:32:15 +02:00
2025-01-17 06:53:35 +01:00
2026-07-09 17:24:19 +02:00
2026-10-07 19:18:51 +02:00
2026-06-29 22:15:18 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-06 07:33:34 +02:00
2026-10-11 08:22:00 +02:00
2026-10-06 07:33:34 +02:00
2026-10-06 07:33:34 +02:00
2026-10-06 07:33:34 +02:00
2026-10-02 11:32:15 +02:00
2026-10-06 07:33:34 +02:00
2026-06-29 22:15:18 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:21:41 +02:00
2026-10-02 11:32:15 +02:00
2026-10-02 11:32:15 +02:00
2026-10-11 08:22:10 +02:00
2026-10-06 22:33:29 +02:00