json/include/nlohmann/detail
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
..
conversions ♻️ rename internal_binary_t with binary_t 2020-05-17 22:50:27 +02:00
input 🏁 fix for MSVC (see https://github.com/nlohmann/json/pull/2178#issuecomment-640622532) 2020-06-08 20:07:15 +02:00
iterators ♻️ rename internal_binary_t with binary_t 2020-05-17 22:50:27 +02:00
meta 🏁 do not include <ciso646> unless old MSVC is used #2089 2020-05-07 09:43:41 +02:00
output ♻️ extract common code to function 2020-06-19 13:24:08 +02:00
boolean_operators.hpp ⚗️ do not include <ciso646> with C++20 #2089 2020-05-07 10:17:32 +02:00
exceptions.hpp 🚚 rename Hedley macros 2019-07-01 22:37:30 +02:00
json_pointer.hpp json_pointer::array_index: Use unsigned values for the array index when parsing 2020-06-22 13:42:55 +02:00
json_ref.hpp 💚 fix CI and #1521 2019-03-17 15:20:22 +01:00
macro_scope.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
macro_unscope.hpp 🔨 add NLOHMANN_JSON prefix and undef macros 2019-07-01 22:24:39 +02:00
value_t.hpp 🏁 do not include <ciso646> unless old MSVC is used #2089 2020-05-07 09:43:41 +02:00