776 Commits

Author SHA1 Message Date
Dmitry Arkhipov
13d95270e9 correct info on object element reference invalidation 2025-02-27 14:52:29 +03:00
Roy Bellingan
e3531d3210 used BOOST_FALLTHROUGH; instead of a comment 2025-02-19 18:05:30 +00:00
Dmitry Arkhipov
57d42f0715 Fix pretty printers integration for 32-bit ARM 2024-12-26 15:06:34 +03:00
Dmitry Arkhipov
9b654f7b1a remove unnecessary branch in string serialization 2024-10-30 15:33:31 +03:00
Dmitry Arkhipov
9b3b993ff6 short circuit serializer::read on empty buffer 2024-10-30 15:33:31 +03:00
Dmitry Arkhipov
3857c2ab91 allow extra members for converted structs 2024-10-23 15:43:59 +03:00
Dmitry Arkhipov
6071cd5808 simplify exception wrapping in value_to 2024-10-22 16:27:50 +03:00
Martin Vejbora
b6c916f3a6 Use correct 64bit full multiplication for MinGW on ARM64 2024-10-18 09:29:41 +02:00
Dmitry Arkhipov
27c40ee8c3 fix parse_into handling of tuple of the wrong size 2024-10-07 21:35:43 +03:00
Dmitry Arkhipov
b036074e4b check for input size larger than allowed size of sequence 2024-10-07 18:07:57 +03:00
Dmitry Arkhipov
85f9e92c18 pretty printer cleanup 2024-09-23 16:39:14 +03:00
Julien Blanc
743be7fe13 Allow to include pretty printers only once
* some linkers will include the section many times in the executable,
  resulting in increased load time and warning messages inside gdb
* allows including them only once by defining
  BOOST_ALL_NO_EMBEDDED_GDB_SCRIPTS, and including the printers.hpp
  file only once.

Signed-off-by: Julien Blanc <julien.blanc@tgcm.eu>
2024-09-23 16:38:37 +03:00
Dmitry Arkhipov
906bf1a70b remove deprecated init-list behavior 2024-09-18 12:47:49 +03:00
Dmitry Arkhipov
019577c709 remove deprecated type aliases 2024-09-18 12:47:49 +03:00
Dmitry Arkhipov
7b493e792a UDT serialization of paths 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
8f7b1edef9 UDT serialization of optionals 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
4a5e6bbccf UDT serialization of variants 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
097a3da7d2 UDT serialization of described enums 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
42576b096a UDT serialization of described structs 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
5666575e7b UDT serialization of tuples 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
d291537423 UDT serialization of maps 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
3caf6daa7f UDT serialization of sequences 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
bf39bc29c4 UDT serialization of strings 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
532e21aa27 refactor fallback reset to null 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
473aee9cd0 UDT serialization of bool and null 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
b787cf1bc7 initial implementation of UDT serialization
currently only arithmetic types are supported
2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
0f48f98a5c refactor treatment of non-trivials by stack
* trivial copyability is enough for fast approach;
* non-trivials are stored in a linked list interspersed with trivials;
* objects can be moved into stack
* non-trivial holders aren't polymorphic
2024-09-16 18:15:25 +03:00
Vinnie Falco
a7bdbcb1d3 stack can store nontrivial types 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
a1ad2629a7 use helper for serialization implementation 2024-09-16 18:15:25 +03:00
Dmitry Arkhipov
9e6d3de3e9 silence GCC false positives in tests 2024-09-10 14:51:02 +03:00
Dmitry Arkhipov
cac6d97552 fix value_ref segfaulting on GCC 14 2024-09-10 11:21:48 +03:00
Dmitry Arkhipov
6e3ae77d63 add gdb pretty printers 2024-09-09 21:10:41 +03:00
Dmitry Arkhipov
324a7eb147 BOOST_JSON_ALLOW_DEPRECATED macro 2024-07-28 09:55:54 +03:00
Dmitry Arkhipov
52264f68e4 deprecate GCC older than 5.0 2024-07-08 14:08:13 +03:00
Dmitry Arkhipov
e23879d754 accessor functions have source_location parameters 2024-06-17 16:41:15 +03:00
Dmitry Arkhipov
9b823e095b try_at functions 2024-06-17 16:41:15 +03:00
Dmitry Arkhipov
6bb79c4a25 try_as_ functions 2024-06-17 14:07:14 +03:00
Dmitry Arkhipov
4ebd252a13 try_at_pointer and try_set_at_pointer 2024-06-17 09:28:14 +03:00
Dmitry Arkhipov
274a0f5537 try_to_number 2024-06-17 09:18:09 +03:00
Dmitry Arkhipov
3d334a74e1 add references to external types 2024-06-16 15:29:15 +03:00
Dmitry Arkhipov
6ab2ad816b fix reference errors 2024-06-14 15:52:58 +03:00
Dmitry Arkhipov
038916a0d4 use Python implementation of docca 2024-06-13 22:48:42 +03:00
Dmitry Arkhipov
c4af9affc0 refactor string parsing 2024-05-27 22:47:47 +03:00
Dmitry Arkhipov
1f6f1a2384 handle missing error case in direct parsing 2024-05-13 21:06:56 +03:00
Dmitry Arkhipov
a573496cef fix lcov markings 2024-05-13 16:27:18 +03:00
Vaishnav Katiyar
dc9521601c allow_invalid_utf16 2024-04-10 16:45:06 +05:30
Dmitry Arkhipov
9f85ed6d62 fix value_to for variants
After we allowed exceptions to propagate through error_code-based
conversions (when the user invoked value_to, rather than try_value_to),
we inadvertently broke value_to for variants, because they relied on
exceptions being caught by try_value_to. This change disables exception
propagation for exactly one level of nesting.
2024-04-03 15:22:27 +03:00
Dmitry Arkhipov
2883ff1689 conversion of described classes supports private members 2024-03-02 10:59:31 +03:00
Dmitry Arkhipov
f3acd38f9b simplify definition of BOOST_JSON_LIKELY/UNLIKELY 2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
b7f4665b52 remove BOOST_SYMBOL_VISIBLE fallback 2024-02-13 13:05:55 +03:00