2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-19 04:12:14 +00:00

89 Commits

Author SHA1 Message Date
Dmitry Arkhipov
427baa6e47 remove dependency on StaticAssert 2025-10-24 19:33:52 +03:00
Dmitry Arkhipov
906bf1a70b remove deprecated init-list behavior 2024-09-18 12:47:49 +03:00
Dmitry Arkhipov
7e2f458b41 silence GCC false positive warning in tests 2024-07-03 08:23:44 +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
274a0f5537 try_to_number 2024-06-17 09:18:09 +03:00
Dmitry Arkhipov
bacc644f93 deprecate type aliases 2024-02-09 13:19:49 +03:00
Dmitry Arkhipov
66d9251167 more init-list value construction tests 2023-09-11 16:59:10 +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
be759c5051 only throw system_error 2023-06-02 16:23:08 +03:00
Dmitry Arkhipov
35dc1b964e support parse options in stream operator 2023-06-02 07:30:47 +03:00
Dmitry Arkhipov
36552f0c94 remove namespace macros 2023-01-02 18:41:01 +03:00
Dmitry Arkhipov
dc5d44d9dc remove useless tests 2023-01-02 12:37:41 +03:00
Dmitry Arkhipov
4d224096ce refactor operator>>(istream&, value&) 2022-11-06 12:21:56 +03:00
Dmitry Arkhipov
9f20452e05 operator>> for value 2022-11-05 16:37:27 +03:00
Dmitry Arkhipov
77c94f5cd2 rvalue-ref accessors 2022-10-24 14:57:09 +03:00
Dmitry Arkhipov
a3cf6478f5 bring coverage back 2022-09-26 12:10:00 +03:00
Dmitry Arkhipov
95a6297480 non-const value::at overloads 2022-05-23 19:35:29 +03:00
Dmitry Arkhipov
56eaebf1cb add source_location to error_codes 2022-02-18 14:31:47 +03:00
Dmitry Arkhipov
1523954c98 Add std::error_code overloads 2022-02-06 17:35:09 +03:00
Dmitry Arkhipov
1d7cbc2e55 Fix clang 3.5 failures 2021-12-05 14:05:38 +03:00
Dmitry Arkhipov
2ebbd0cfe3 to_number overload takes error 2021-05-08 01:01:45 +03:00
Dogan Ulus
f6a429e443 Expand and improve tests 2021-05-06 21:29:35 +03:00
Dogan Ulus
87a93dade5 Add std::hash specializations for json types 2021-05-06 21:24:26 +03:00
Vinnie Falco
499ef7d4b1 Revert "Add value::is_integral"
This reverts commit 099a82957a.
2020-11-17 11:44:10 -08:00
Vinnie Falco
099a82957a Add value::is_integral 2020-11-16 10:18:48 -08:00
Krystian Stasiowski
a09d596781 Use is_same over is_same_v 2020-10-21 09:54:42 -07:00
Vinnie Falco
0a905acf9d Tidy up pilfering 2020-10-06 11:59:58 -07:00
Vinnie Falco
ca9e94c490 Tidy up to_number 2020-10-05 16:16:48 -07:00
Vinnie Falco
2032232f9e value::to_number replaces number_cast 2020-10-05 13:17:13 -07:00
Vinnie Falco
592783499e Tidy up value and tests 2020-10-05 11:44:13 -07:00
Vinnie Falco
94d11a74e6 Refactor storage_ptr (API Change) 2020-10-04 19:07:58 -07:00
Vinnie Falco
b95be4fd15 8-bit integers are supported
fix #433
2020-10-04 11:21:55 -07:00
Vinnie Falco
531287af2b long double is not a fundamental type:
fix #432

Users have to opt-in to the narrowing conversion
by using static_cast.
2020-10-04 11:21:55 -07:00
Vinnie Falco
9b86962fbc Add metadata and update repo links 2020-10-04 11:06:25 -07:00
Vinnie Falco
c113849f59 Tidy up assignment and swap
fix #357
2020-09-17 16:09:29 -07:00
Vinnie Falco
360b611612 Roll back value kind interface changes:
fix #339

* value::is_array, et. al. return bool
* value::if_array returns a pointer
* array::if_contains replaces contains
* object::if_contains replaces contains
* object::contains returns bool
2020-09-15 18:10:33 -07:00
Vinnie Falco
e0b7b2b4f9 Tidy up dtor exception specs and docs
fix #309
2020-09-15 17:43:10 -07:00
Vinnie Falco
7b7a977fd4 value is Regular
fix #313
2020-09-11 11:53:21 -07:00
Krystian Stasiowski
f3d0710e37 Handler specifies structure and string limits 2020-09-09 12:12:50 -07:00
Vinnie Falco
8b11ca3586 Replace value::if_ with value::is_
close #249
2020-09-04 15:48:58 -07:00
Vinnie Falco
c4dc2b2052 Tidy up exceptions 2020-09-02 07:00:44 -07:00
Vinnie Falco
94e26abb66 standalone is an inline namespace
fix #181, close #244
2020-09-01 15:44:47 -07:00
Vinnie Falco
8893e108e3 max_size for array and object is equal
close #167
2020-08-18 13:46:21 -07:00
Krystian Stasiowski
904252de0b Fix repo links
close #123
2020-07-03 11:51:58 -07:00
AeroStun
4d1587900f Make key_value_pair tuple-like
close #112, close #121
2020-06-30 16:56:42 -07:00
Vinnie Falco
f47fbeb1a5 Refactor value conversions 2020-06-08 15:11:12 -07:00
Vinnie Falco
a6d2549ddf storage_ptr fixes:
* Fix constraint in constructor
* No longer constructible from nullptr
2020-05-01 17:41:38 -07:00
Vinnie Falco
1061bcaa21 Check array contents in tests 2020-05-01 17:41:31 -07:00
Vinnie Falco
9d3f055ff5 Workaround for LLVM/clang-cl bug 2020-04-30 19:00:09 -07:00