🐛 use binary_t::value_type

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann 2025-06-01 21:42:42 +02:00
parent 9e6240ad02
commit 88672fa062
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -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
}