Commit Graph
124 Commits
Author SHA1 Message Date
Dr. Patrick Urbanke 778d14ba56 Make all Literal default-constructible; fixes #536 2025-11-03 18:52:02 +01:00
Dr. Patrick Urbanke (劉自成) dfcbff981e Added support for JSON schemata for the Reflector type; fixes #509 (#527) 2025-10-19 18:23:27 +02:00
Philemon Benner 83951fd90b Feature/shared exports msvc (#525) 2025-10-19 16:32:15 +02:00
Dr. Patrick Urbanke (劉自成) 06988aa0e1 Updated YYJSON to 0.12.0; fixes #524 (#526) 2025-10-17 00:37:21 +02:00
Andrew Nolte 85f9642343 [json schema] Use non-deprecated $defs; Add $comment option (#523) 2025-10-15 17:51:03 +02:00
KostinPavel 732e9fe85f Cleanup includes (#519) 2025-10-13 18:16:14 +02:00
Dr. Patrick Urbanke (劉自成) ff9cc716a1 Made sure the Description and Validated retain optional; fixes #503 (#508) 2025-10-04 09:02:38 +03:00
Bryce Schober d33a4f50d4 Add rfl::AddNamespacedTagsToVariants for rfl::Generic and same-name-different-namespace structs (#494) 2025-09-11 08:10:51 +02:00
Dr. Patrick Urbanke (劉自成) 9e57aee378 Added a test for UUIDv4; upgraded CTRE to 3.10; fixed issue #486 (#487) 2025-08-31 21:40:43 +02:00
Dr. Patrick Urbanke (劉自成) 3dc74c9596 Use stringstreams for the error messages in the validators; fixes #475 (#478) 2025-08-08 00:29:23 +02:00
Dr. Patrick Urbanke (劉自成) a6b74370bc Make sure that rfl::Underlying enum behaves as expected; fixes #463 (#476) 2025-08-05 22:11:12 +02:00
Dr. Patrick Urbanke (劉自成) f6762227c7 Added support for std::span; resolves #457 (#468) 2025-07-20 18:14:33 +02:00
Joel McKenzie e6c8fdfd3e Fix bug reading with 'tagged' variants when a variant is non-copyable (#464) 2025-07-16 23:28:15 +02:00
Lixin Wei 238a1975da Add error message for json read (#461) 2025-07-16 09:23:34 +02:00
Lixin Wei 18feb02099 Extend rfl::AllowRawPtrs to std::string_view (#460) 2025-07-14 08:45:23 +02:00
Dr. Patrick Urbanke (劉自成) 9e3f818761 Made sure that apply can never move or modify the tuple values; fixes #439 (#440) 2025-05-28 08:12:50 +02:00
Bryce Schober b6446a8be4 Test for JSON & CBOR encoding error handling (#432) 2025-05-14 22:06:36 +08:00
Dr. Patrick Urbanke (劉自成) 778cd54173 Use fold expressions inside the literals (#434) 2025-05-11 17:55:02 +08:00
Dr. Patrick Urbanke (劉自成) 25cd3f8525 Added support for custom hash functions in unordered containers; #414 (#415) 2025-04-26 21:13:39 +08:00
Dr. Patrick Urbanke (劉自成) c36baf8d0b Better error handling for YYJSON write (#413) 2025-04-24 08:43:32 +08:00
Dr. Patrick Urbanke (劉自成) ef0b0b4729 Added support for std::chrono::duration; fixes #399 2025-04-14 00:15:26 +08:00
Dr. Patrick Urbanke (劉自成) d73d98f1c8 Change back to tomlplusplus (#401)
For a long time, tomlplusplus did generate a config.cmake file, which made it difficult to use on vcpkg. As a fix, we switched to toml11.

But this has now finally been added to vcpkg, and since tomlplusplus is faster than toml11 in terms of compile time and runtime, we are changing back.
2025-04-08 13:59:24 +08:00
Dr. Patrick Urbanke (劉自成) c929d3fe0d Do not allow the reading of floats as integers and vice versa (#387) 2025-03-16 16:25:45 +08:00
Dr. Patrick Urbanke (劉自成) 241112f98c Make sure that no field is required when we use rfl::DefaultIfMissing; #376 (#385) 2025-03-16 00:06:27 +08:00
Heiko Lewin e825b236ee Parser_default: Move temporary variable instead of copying (#362) 2025-02-25 21:01:39 +01:00
Dr. Patrick Urbanke (劉自成) c6d0626267 Make sure rfl::Generic is NOT optional; fixes #352 (#358) 2025-02-20 21:17:27 +01:00
Jowillianto 6d51c12db5 Feat/286/std expected (#340) 2025-02-03 19:27:10 +01:00
Dr. Patrick Urbanke (劉自成) 23ce24f001 Make sure you can insert unsupported types into rfl::Skip<...>; #299 (#304) 2024-12-22 15:43:17 +01:00
Dr. Patrick Urbanke (劉自成) e46835287f Added support for Apache Avro, and thus for schemaful formats (#303) 2024-12-22 14:53:25 +01:00
Matthieu DubugetandMatthieu Dubuget 99f3f50fd3 Add operator== to TaggedUnion.hpp (#280)
Co-authored-by: Matthieu Dubuget <matthieu.dubuget@tpac-ndt.com>
2024-12-06 23:45:12 +01:00
Manuel Bellersen 1f39b4f1e7 Use perfect forwarding on rfl::visit for rfl::TaggedUnion (#252) 2024-11-12 19:35:54 +01:00
Manuel Bellersen 716de7b6fd Emplace into optional to be able to visit variant containers containi… (#234) 2024-11-08 13:39:08 +01:00
Dr. Patrick Urbanke (劉自成) 9fe3758063 Automatically add tags to variants; fixes #230 (#246) 2024-11-05 21:11:28 +01:00
Dr. Patrick Urbanke (劉自成) 2ef144c041 Added support for raw pointers; #218 (#244) 2024-11-05 00:14:56 +01:00
Dr. Patrick Urbanke (劉自成) 458ca09198 Remove warnings generated by GCC and Clang (#243) 2024-11-01 00:01:52 +01:00
Dr. Patrick Urbanke (劉自成) 230ba48bff Fix memory safety issues (#241); should resolve #240 2024-10-31 17:48:15 +01:00
Shengqi Chen 7bf71c6d7b Enhance tests (#226) 2024-10-30 21:39:11 +01:00
Dr. Patrick Urbanke (劉自成) b3b0370ce2 Added a test for string views (#223) 2024-10-20 12:51:05 +02:00
Dr. Patrick Urbanke (劉自成) df56b2e31f Added the ability to transform structs from and to generic elements; resolves #201 (#210) 2024-10-13 20:30:56 +02:00
Dr. Patrick Urbanke (劉自成) 0ebaeeff0d Bugfix: Memory leak under some circumstances; resolves #212 (#215) 2024-10-13 20:00:34 +02:00
George Evmenov 3c6be6a136 add simple precompiled headers (#211) 2024-10-09 09:32:40 +02:00
Dr. Patrick Urbanke (劉自成) 099211943d Bugfixes for inheritance C arrays and inheritance, fixes #205 (#206) 2024-10-05 23:15:11 +02:00
Dr. Patrick Urbanke (劉自成) ef39b21935 Support for lvalues in rfl::visit; fixes #184 and #187 (#203) 2024-09-30 23:54:01 +02:00
Dr. Patrick Urbanke (劉自成) 75c7859ab1 Use size_t instead of iterators inside Object; addresses #194 (#198) 2024-09-21 00:25:18 +02:00
Dr. Patrick Urbanke (劉自成) 63f4078c5c Added the rfl::NoExtraFields processor; resolves #190 (#195) 2024-09-18 23:07:05 +02:00
Dr. Patrick Urbanke (劉自成) 54c2a84650 Add rfl::DefaultIfMissing; fixes #163, #167, #185 (#189) 2024-09-15 19:38:33 +02:00
AnsiV01 dfc24ad932 rfl::UnderlyingEnums (#186)
* First part

* Plural

* Update rfl.hpp

* Documentation

* Update rfl.hpp

* Update processors.md

* underlying_enums test

* Update Parser_default.hpp

* Fix typo in test
2024-09-12 09:37:31 +02:00
Dr. Patrick Urbanke (劉自成) d796c8cf0c Optimizations for classes with many fields; #168 (#171) 2024-08-03 13:48:09 +02:00
Dr. Patrick Urbanke (劉自成) c36f8c6af6 Added support for rfl::Binary, rfl::Hex and rfl::Oct; #164 (#170) 2024-08-02 21:44:50 +02:00
Dr. Patrick Urbanke (劉自成) b6651a4062 Added support for std::system::filepath; #166 (#169) 2024-08-01 23:16:05 +02:00