2
0
mirror of https://github.com/boostorg/json.git synced 2026-02-12 12:12:15 +00:00
Commit Graph

1048 Commits

Author SHA1 Message Date
Peter Dimov
53b99c8e6b Add example/parse_into_citm_catalog.cpp 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
10ef306f82 test/parse_into.cpp requires /bigobj on msvc 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
76c234b877 Add example/parse_into_canada.cpp 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
Dmitry Arkhipov
07efc5e83b better document building without exceptions
Also, a test for building without exceptions.
2023-10-06 22:56:17 +03:00
Dmitry Arkhipov
4a1350b16c b2 target to copy benchmark runner to source dir
This can be useful for CI, because otherwise b2 put the runner program
in a directory that is not trivial to deduce.
2023-10-06 16:18:59 +03:00
Dmitry Arkhipov
00c630eb9a b2 target to run benchmarks 2023-10-06 15:53:58 +03:00
Dmitry Arkhipov
66d9251167 more init-list value construction tests 2023-09-11 16:59:10 +03:00
Dmitry Arkhipov
a07e38be41 is_variant_like 2023-09-09 13:09:07 +03:00
Peter Dimov
557676b68c Add a variant2 test to value_to.cpp, extracted from #925 2023-09-03 23:57:11 +03:00
Dmitry Arkhipov
25e740d7ba fix inconsistent choice of init list constructor
On some compilers value{x} invokes initializer_list constructor, on
others it is equivalent to value(x). This is very problematic, but this
isn't something we can fix. On the other hand, we CAN make init list
construction to be equivalent to value(x), if the size of init list is
one. This commit does exactly that.
2023-08-25 20:27:46 +03:00
Dmitry Arkhipov
2acdb29a32 fix reading beyond input buffer
This fixes a rare case when the parser first suspends inside a comment,
then is given input exactly up to the newline character. Before the fix
it proceeded to read past the end of the buffer or hit an assert.
2023-08-25 19:50:20 +03:00
Dmitry Arkhipov
f48b6dd4b0 relax iterator requirements 2023-08-23 19:48:56 +03:00
Dmitry Arkhipov
ca2a1b5f80 is_optional_like 2023-08-23 19:46:33 +03:00
Matt Borland
0c1b4692f9 Replace _M_ARM64 with _M_ARM for 32 bit path 2023-08-16 08:06:45 -04:00
Matt Borland
c4ce8509d0 Fix use of intrinsics on windows ARM platforms 2023-08-11 09:21:10 -04:00
Dmitry Arkhipov
e084a2918c 1.83.0 release notes boost-1.83.0 2023-07-26 15:50:09 +03:00
Dmitry Arkhipov
ed9e2f536a require ARM64 for __umulh 2023-07-24 14:39:22 +03:00
Dmitry Arkhipov
b8ccd1499e move number_precision to Constants in reference 2023-07-23 23:56:24 +03:00
Dmitry Arkhipov
ca04e885dc rebalance columns in reference docs 2023-07-23 22:25:53 +03:00
Dmitry Arkhipov
0273148f69 replaced references to cppalliance/json with references to boostorg/json where appropriate 2023-07-17 17:53:33 +03:00
Dmitry Arkhipov
0a7860fcfc conversion customization guidelines boost-1.83.0.beta1 2023-07-03 17:59:17 +03:00
Dmitry Arkhipov
bee57b4cb7 remove unnecessary code in value_to for variant 2023-07-03 17:59:17 +03:00
Dmitry Arkhipov
5bc9ebb8d2 allow exception propagation in optional and variant conversion 2023-07-03 17:59:17 +03:00
Dmitry Arkhipov
c3d6757ab9 allow exception propagation from nested conversions
Specifically, when user invokes throwing value_to, when it goes to
non-throwing conversion, then back to throwing conversion, exceptions
will be able to propogate still.
2023-07-03 17:59:14 +03:00
Dmitry Arkhipov
747bde3e37 fix conversion into tuple with const elements 2023-06-29 20:47:33 +03:00
Matt Borland
00ba38404a Fix type of pointer to _umul128 2023-06-29 09:28:52 +02:00
Dmitry Arkhipov
3d751ad9e5 handle bias overflow 2023-06-28 13:22:49 +03:00
Dmitry Arkhipov
dd5494b202 accept numbers with large exponent 2023-06-26 21:38:25 +03:00
Dmitry Arkhipov
6a034f22d6 split parse_number into separate instatntiations per number parsing mode 2023-06-24 14:45:00 +03:00
Dmitry Arkhipov
285c3aa5a2 mode to not parse numbers 2023-06-23 18:12:08 +03:00
Dmitry Arkhipov
105e74e46f fix wrong CMake command for MSVC 2023-06-22 08:34:58 +03:00
Dmitry Arkhipov
24cca5f47b fix error message for size_mismatch 2023-06-21 13:45:04 +03:00
Dmitry Arkhipov
8957955af4 restore object storage on failed range insert 2023-06-14 09:53:18 +03:00
Dmitry Arkhipov
c4329519cd do not reserve preemptively in object 2023-06-14 09:36:09 +03:00
Dmitry Arkhipov
4700500920 use Charconv for precise parsing 2023-06-13 16:50:11 +03:00
Dmitry Arkhipov
3956bdbb78 fix asan failures
Changes to array sizes in tests are due to asan bug.
2023-06-07 14:12:57 +03:00