Closed
Description
Description
When parsing a binary format from a std::vector<std::uint8_t>
, there is a deprecation warning:

Reproduction steps
Call nlohmann::json::from_bjdata
on a std::vector<std::uint8_t>
.
Expected vs. actual results
Expected: no deprecation warning.
Actual:

Minimal code example
std::vector<std::uint8_t> vec {{ 0x7b, 0x55, 0x0b }};
nlohmann::json j = nlohmann::json::from_bjdata(vec);
Error messages
See screenshot above.
Compiler and operating system
Apple clang version 15.0.0 (clang-1500.0.40.1)
Library version
develop
Validation
- The bug also occurs if the latest version from the
develop
branch is used. - I can successfully compile and run the unit tests.