diff --git a/tests/src/unit-bjdata.cpp b/tests/src/unit-bjdata.cpp index 6c5c9c65c..4885de2d8 100644 --- a/tests/src/unit-bjdata.cpp +++ b/tests/src/unit-bjdata.cpp @@ -85,7 +85,7 @@ TEST_CASE("BJData") // the markers BJData excludes as optimized types must match // binary_writer's is_bjdata_excluded_type_marker(), which encodes the // 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 : {'[', '{', 'S', 'H', 'T', 'F', 'N', 'Z', 'x' })