@@ -1708,14 +1708,6 @@ class basic_json
1708
1708
evaluate ().dump (os, options);
1709
1709
}
1710
1710
}
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
- */
1719
1711
JSONCONS_DEPRECATED_MSG (" Instead, use dump(basic_json_visitor<char_type>&)" )
1720
1712
void to_stream(basic_json_visitor<char_type>& visitor) const
1721
1713
{
@@ -4773,19 +4765,6 @@ class basic_json
4773
4765
}
4774
4766
4775
4767
#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
- */
4789
4768
JSONCONS_DEPRECATED_MSG (" Instead, use basic_json(byte_string_arg_t, const Source&, semantic_tag=semantic_tag::none,const Allocator& = Allocator())" )
4790
4769
basic_json(const byte_string_view& bytes,
4791
4770
semantic_tag tag,
0 commit comments