mirror of
https://github.com/nlohmann/json.git
synced 2026-11-04 11:49:22 +00:00
Make the BJData reader in the lookup test const (misc-const-correctness)
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
1 file changed
+1
-1
@@ -85,7 +85,7 @@ TEST_CASE("BJData")
|
|||||||
// the markers BJData excludes as optimized types must match
|
// the markers BJData excludes as optimized types must match
|
||||||
// binary_writer's is_bjdata_excluded_type_marker(), which encodes the
|
// binary_writer's is_bjdata_excluded_type_marker(), which encodes the
|
||||||
// same 8 markers
|
// same 8 markers
|
||||||
reader_t reader(nlohmann::detail::input_adapter(data), json::input_format_t::bjdata);
|
const reader_t reader(nlohmann::detail::input_adapter(data), json::input_format_t::bjdata);
|
||||||
for (const char marker :
|
for (const char marker :
|
||||||
{'[', '{', 'S', 'H', 'T', 'F', 'N', 'Z', 'x'
|
{'[', '{', 'S', 'H', 'T', 'F', 'N', 'Z', 'x'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user