Skip to content

Commit fa564d7

Browse files
committed
Fix legacy json_type_trait issue
1 parent acea740 commit fa564d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/jsoncons/json_type_traits.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ namespace variant_detail
18191819
{
18201820
jsoncons::string_view sv = j.as_string_view();
18211821
null_back_insertable_byte_container cont;
1822-
auto result = decode_base16(sv.begin(), sv.end(), cont);
1822+
auto result = base16_to_bytes(sv.begin(), sv.end(), cont);
18231823
return result.ec == conv_errc::success ? true : false;
18241824
}
18251825
return false;
@@ -1844,7 +1844,7 @@ namespace variant_detail
18441844
else
18451845
{
18461846
jsoncons::string_view sv = j.as_string_view();
1847-
auto result = decode_base16(sv.begin(), sv.end(), bits);
1847+
auto result = base16_to_bytes(sv.begin(), sv.end(), bits);
18481848
if (result.ec != conv_errc::success)
18491849
{
18501850
JSONCONS_THROW(conv_error(conv_errc::not_bitset));

0 commit comments

Comments
 (0)