Skip to content

Commit 71206cd

Browse files
committed
ChangeLog update
1 parent 4234c5e commit 71206cd

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

ChangeLog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Bugs fixed:
66
- A C++20 change caused a `basic_json` overloaded operator '==' to be ambiguous
77
despite there being a unique best viable function. Fixed.
88

9+
- When parsing MessagePack buffers, lengths were being incorrectly
10+
parsed as signed integers. Fixed.
11+
912
Enhancements:
1013

1114
- Added jsonschema extension that implements the JSON Schema [Draft 7](https://json-schema.org/specification-links.html#draft-7)
@@ -21,6 +24,12 @@ the flattened output was {"/bar":null,"/foo":null}, but is now
2124
`{"/bar":{},"/foo":[]}`. `jsonpointer::unflatten` will now return
2225
the original object.
2326

27+
Deprecated function removed:
28+
29+
- The long since deprecated `basic_json` funtion
30+
`to_string(const basic_json_encode_options<char_type>&, char_allocator_type&) const`
31+
has been removed (replaced by `dump`).
32+
2433
v0.159.0
2534
--------
2635

include/jsoncons/basic_json.hpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,14 +1708,6 @@ class basic_json
17081708
evaluate().dump(os, options);
17091709
}
17101710
}
1711-
/*
1712-
template <class SAllocator=std::allocator<char_type>>
1713-
JSONCONS_DEPRECATED_MSG("Instead, use dump(std::basic_ostream<char_type>&, const basic_json_encode_options<char_type>&)")
1714-
std::basic_string<char_type,char_traits_type,SAllocator> to_string(const basic_json_encode_options<char_type>& options, char_allocator_type& alloc = char_allocator_type()) const
1715-
{
1716-
return evaluate().to_string(options,alloc);
1717-
}
1718-
*/
17191711
JSONCONS_DEPRECATED_MSG("Instead, use dump(basic_json_visitor<char_type>&)")
17201712
void to_stream(basic_json_visitor<char_type>& visitor) const
17211713
{
@@ -4773,19 +4765,6 @@ class basic_json
47734765
}
47744766

47754767
#if !defined(JSONCONS_NO_DEPRECATED)
4776-
/*
4777-
template <class SAllocator = std::allocator<char_type>>
4778-
JSONCONS_DEPRECATED_MSG("Instead, use dump(std::basic_ostream<char_type>&, const basic_json_encode_options<char_type>&)")
4779-
std::basic_string<char_type, char_traits_type, SAllocator> to_string(const basic_json_encode_options<char_type>& options,
4780-
const SAllocator& alloc = SAllocator()) const
4781-
{
4782-
using string_type = std::basic_string<char_type, char_traits_type, SAllocator>;
4783-
string_type s(alloc);
4784-
basic_compact_json_encoder<char_type, jsoncons::string_sink<string_type>> encoder(s, options);
4785-
dump(encoder);
4786-
return s;
4787-
}
4788-
*/
47894768
JSONCONS_DEPRECATED_MSG("Instead, use basic_json(byte_string_arg_t, const Source&, semantic_tag=semantic_tag::none,const Allocator& = Allocator())")
47904769
basic_json(const byte_string_view& bytes,
47914770
semantic_tag tag,

0 commit comments

Comments
 (0)