mirror of
https://github.com/nlohmann/json.git
synced 2026-10-11 00:47:12 +00:00
Merge branch 'json-view/08-view-builder' into json-view/11-view-access
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
6 files changed
+20
-10
No files matched your search
@@ -466,7 +466,7 @@ TEST_CASE("json_view")
|
||||
{
|
||||
// 32-bit offsets: the limit is 4 GiB minus 16 bytes (a margin below 2^32),
|
||||
// which is what the exception message and the documentation say
|
||||
const std::size_t limit = nlohmann::detail::view::max_input_size;
|
||||
const std::size_t limit = nlohmann::detail::view::max_input_size();
|
||||
CHECK(limit == std::size_t{4294967279u});
|
||||
|
||||
const oversized_input input{limit + 1};
|
||||
|
||||
Reference in new issue
Block a user