json/include/nlohmann
Thomas Braun ecbb2756fd json_pointer::array_index: Use unsigned values for the array index when parsing
The current code uses std::stoi to convert the input string to an int
array_index. This limits the maximum addressable array size to ~2GB on
most platforms.

But all callers immediately convert the result of array_index to
BasicJsonType::size_type.

So let's parse it as unsigned long long, which allows us to have as
big arrays as available memory. And also makes the call sites nicer to
read.

One complication arises on platforms where size_type is smaller than
unsigned long long. We need to bail out on these if the parsed array
index does not fit into size_type.
2020-06-22 13:42:55 +02:00
..
detail json_pointer::array_index: Use unsigned values for the array index when parsing 2020-06-22 13:42:55 +02:00
thirdparty/hedley ⬆️ Hedley 13 2020-04-06 11:56:33 +02:00
adl_serializer.hpp 🚨 fixed some more linter warnings 2018-10-28 09:15:41 +01:00
byte_container_with_subtype.hpp 📝 update documentation 2020-05-22 18:21:37 +02:00
json.hpp json_pointer::array_index: Use unsigned values for the array index when parsing 2020-06-22 13:42:55 +02:00
json_fwd.hpp Add binary type support to all binary file formats, as well as an internally represented binary type 2020-04-14 10:22:45 -04:00