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
Dmitry Arkhipov
61e49622ed
remove BOOST_THROW_EXCEPTION fallback
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
48286f443a
remove BOOST_NOINLINE fallback
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
5271b92ba9
remove BOOST_FORCEINLINE fallback
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
3fed67e52a
remove BOOST_FALLTHROUGH
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
e25d547978
remove BOOST_STATIC_ASSERT fallback
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
0201abe2df
remove BOOST_ASSERT fallback
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
8ae26f30f0
remove BOOST_NORETURN fallback
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
3d8c37d6b3
remove BOOST_JSON_NODISCARD
2024-02-13 13:05:55 +03:00
Dmitry Arkhipov
5663210adf
use Boost.Endian for endianness
2024-02-12 22:52:36 +03:00
Dmitry Arkhipov
bacc644f93
deprecate type aliases
2024-02-09 13:19:49 +03:00
Dmitry Arkhipov
411b9a9201
explicitly require default construction in value_to for described classes
2024-02-08 20:09:12 +03:00
Dmitry Arkhipov
b031e0d317
better document visit
2024-02-07 23:11:35 +03:00
Dmitry Arkhipov
e8d8409928
rvalue ref overload for visit
2024-02-07 23:11:35 +03:00
Dmitry Arkhipov
b07a034870
fix references used in visit
...
1. Fix references in return type
2. Pass nullptr to the visitor with the same value category as the argument.
This is done for uniformity.
2024-02-07 21:39:54 +03:00
Dmitry Arkhipov
ed3a618e4c
direct parsing supports paths
2024-02-06 20:01:31 +03:00
Dmitry Arkhipov
14dfadb44b
add conversion support for paths
2024-02-06 20:01:31 +03:00
Dmitry Arkhipov
194aefb376
do not allow self-referential sequences
...
If the sequence's value type is the same type as the sequence, our
sequence conversion algorithms can't handle them, because they clearly
have some additional data associated with them. As such, they need
special treatment.
2024-02-05 14:07:15 +03:00
Nigel Stewart
942bbd4cf5
remove unnecessary semicolons
...
Fix for Issue #968 - extra ; in gcc --pedantic-errors mode
2024-01-08 14:42:23 +03:00
Dmitry Arkhipov
04b26837fd
remove dead code from serializer
2023-12-15 17:49:45 +03:00
Dmitry Arkhipov
ae4fdf153f
notes on as_ functions not doing convesions
2023-10-27 21:03:13 +03:00
Dmitry Arkhipov
b2fa868bbe
make memory resource classes VISIBLE
2023-10-26 20:54:45 +03:00
Dmitry Arkhipov
aa14b592fe
remove unused macros
2023-10-26 20:49:23 +03:00
Dmitry Arkhipov
e19eddeaee
parse_into clears strings before filling them
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
75981e701e
parse_into clears sequences before filling them
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
34284c3e53
avoid unnecessary allocations for strings
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
60bf3455c2
remove unnecessary parameters
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
a3821cea69
increase parse_into coverage
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
f5b9709666
add struct member count checking for parse_into
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
c1b7174780
add array size checking for parse_into
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
aaa4e7f58a
add tuple size checking for parse_into
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
9859866d08
parse_into supports std::array
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
7b26a344be
parse_into supports variants
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
98b85ad1ab
parse_into tuple support works on C++11
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
b540696622
error_code is first argument for parse_into nested handlers' functions
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
9565c71dee
refactor parse_into tuple handler
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
8e6283af2f
internal docs for parse_into machinery
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
71a6521203
extend parse_into API, document it
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
7133184252
parse_into supports optionals
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
ef6e310141
parse_into supports described enums
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
56fcb09f2d
reusing existing conversion components
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
62af0a0c16
parse_into header cleanup
2023-10-09 16:59:39 +03:00
Peter Dimov
4c628ae36a
Add null_handler
2023-10-09 16:59:39 +03:00
Peter Dimov
7761788417
Add parse_into
2023-10-09 16:59:39 +03:00
Dmitry Arkhipov
5328819e63
make msvc-14.0 compile with exceptions disabled
2023-10-06 22:56:17 +03:00