-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
good first issuekind: bugsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
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.
Metadata
Metadata
Assignees
Labels
good first issuekind: bugsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation