mirror of
https://github.com/nlohmann/json.git
synced 2025-06-07 13:32:51 +08:00
🐛 use binary_t::value_type
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
parent
9e6240ad02
commit
88672fa062
@ -1114,8 +1114,9 @@ TEST_CASE("regression tests 2")
|
||||
#ifdef JSON_HAS_CPP_17
|
||||
SECTION("issue #4804: from_cbor incompatible with std::vector<std::byte> as binary_t")
|
||||
{
|
||||
const std::vector<char> data;
|
||||
const std::vector<std::uint8_t> data = {0x80};
|
||||
const auto decoded = json_4804::from_cbor(data);
|
||||
CHECK((decoded == json_4804::array()));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user