Commit Graph
693 Commits
Author SHA1 Message Date
Joel McKenzie e6c8fdfd3e Fix bug reading with 'tagged' variants when a variant is non-copyable (#464) 2025-07-16 23:28:15 +02:00
David Corbeil ee1da7b564 cbor supports std::optional; fixes #135 (#462) 2025-07-16 23:20:03 +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
Philemon Benner c496f143e4 make sure reflectcpp library namespace is also available when not installing (#458) 2025-07-14 08:44:28 +02:00
Lixin Wei c06d3d5700 rename _res to _result to avoid macro conflict (#456) 2025-07-09 01:19:24 +02:00
Philemon BennerandPhilemon Benner 2a0fdeabe3 added REFLECTCPP_INSTALL to allow user to control if required (#453)
Co-authored-by: Philemon Benner <philemon.benner@arrowtec.de>
2025-07-04 11:56:26 +02:00
ZXShady 907c815939 Don't repeat class name template arguements (#448)
It prevents mistakes and it simplifies the readability of the code.
2025-06-11 00:43:12 +02:00
Dr. Patrick Urbanke (劉自成) 3789268ac3 Added support for exception-free TOML; resolves #436 (#447) 2025-06-09 21:45:09 +02:00
Dr. Patrick Urbanke (劉自成) a0fe3975e8 Better rvalue handling for NamedTuple and Result (#446) 2025-06-09 16:47:39 +02:00
Dr. Patrick Urbanke (劉自成) ec6ab3baf5 Improved support for string_views for TOML and XML (#445)
* Improved support for string_views for TOML and XML

* Upgrade to pugixml 1.15 in order to be able to use string views
2025-06-08 21:00:21 +02:00
Dr. Patrick Urbanke (劉自成) c600b9a9d6 Update README.md to include reference to sqlgen 2025-05-31 23:18:06 +02:00
Ian FluryandDavid Corbeil dd257a84db Fix cbor encoding for uint64_t's (#442)
Signed-off-by: David Corbeil <8996584+dcorbeil@users.noreply.github.com>
Signed-off-by: Ian Flury <ianflury123@gmail.com>
Co-authored-by: David Corbeil <8996584+dcorbeil@users.noreply.github.com>
2025-05-31 23:12:17 +02:00
ZXShadyandDr. Patrick Urbanke 750e67d630 Add enchantum as an enum reflection backend (#441)
---------

Co-authored-by: Dr. Patrick Urbanke <patrick@getml.com>
2025-05-29 23:16:59 +02:00
Dr. Patrick Urbanke 3b6a3bb3c7 Build on every PR 2025-05-29 02:11: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
Dr. Patrick Urbanke (劉自成) eb8ae352bc Streamlined build pipelines; build on every push (#438) 2025-05-26 22:17:33 +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 (劉自成) f86cdb5ca3 Renamed insert to insert_range to avoid ambiguous overload; fixes #420 (#430) 2025-05-07 10:02:18 +08:00
Dr. Patrick Urbanke (劉自成) 41194ad33c Fixed the range calculation; fixes #424 (#428)
Thanks to @bryceschober for pointing this out and drafting a fix.
2025-05-05 11:52:45 +08:00
Andrew Nolte c36142d645 Allow passing yyjson flags in the read(istream) method (#425) 2025-05-03 21:17:23 +08:00
Dr. Patrick Urbanke (劉自成) 5c20194598 Add gtl::flat_hash_map example to the documentation; #416 (#418) 2025-04-28 00:14:21 +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
Dawn Magnet 206d4f4d16 🚀 (CMakeLists.txt): Configure CPack for building and packaging the reflectcpp library (#410) 2025-04-20 09:57:36 +08:00
Dr. Patrick Urbanke (劉自成) 70a047d597 Only install the packages you actually need (#409) 2025-04-18 08:35:40 +08:00
Dr. Patrick Urbanke (劉自成) a70b4ecc7a Bumped version to 0.19.0 (#406) v0.19.0 2025-04-16 07:13:44 +08:00
Dr. Patrick Urbanke (劉自成) d675bfabb6 Added a separate parser for the Bytestring to avoid it being serialized as an array; #407 (#408) 2025-04-16 05:26:21 +08:00
Dr. Patrick Urbanke (劉自成) ef0b0b4729 Added support for std::chrono::duration; fixes #399 2025-04-14 00:15:26 +08:00
George Evmenov 15742a8739 Fix bytestring being serialized as vector of flag enums (#403) 2025-04-10 22:57:03 +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
Joel McKenzie 0530379830 Allow Boxes to conditionally be copyable with an explicit option (#397) (#398) 2025-03-30 14:45:11 +08:00
Giovanni Claudio 74738ed131 Add enum range support with customizable min and max values (#392) 2025-03-28 15:58:36 +08:00
Dr. Patrick Urbanke (劉自成) e6299dc4e0 Use fold expressions to handle enums; #389 (#395) 2025-03-26 10:41:27 +08:00
Giovanni Claudio 69ab371b03 add missing OR in reflectcpp-config.cmake.in (#393) 2025-03-24 17:27:43 +08:00
FeO3 2eccddf082 Fix make_tag to correctly handle reflection types (#391) 2025-03-24 00:23:05 +08:00
Joel McKenzie 386e0bce3b Fix bugging disallowing optionals to hold items without copy constructors (#390) 2025-03-23 21:51:59 +08:00
Joel McKenzie 46693806d1 Fix bugging disallowing optionals to hold items without copy constructors (#390) 2025-03-23 21:34:56 +08:00
Dr. Patrick Urbanke (劉自成) c2b323bf57 Updated reflectcpp-config.cmake.in (#388) 2025-03-19 12:06:43 +08:00
Dr. Patrick Urbanke (劉自成) c929d3fe0d Do not allow the reading of floats as integers and vice versa (#387) v0.18.0 2025-03-16 16:25:45 +08:00
Dr. Patrick Urbanke (劉自成) c9482719f6 Make sure that all textual formats also support std::string_view; #382 (#384) 2025-03-16 06:54:03 +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
Dr. Patrick Urbanke (劉自成) 8027c21e8a Use toml11 instead of tomlplusplus (#381) 2025-03-15 13:23:23 +08:00
Filippo Brizzi c118963de0 Add more missing includes (#378) 2025-03-11 08:56:32 +08:00
Filippo Brizzi 76ad9f8f36 add missing include new (#373) 2025-03-08 11:05:59 +08:00
George Evmenov 2ed458a194 add yyjson_read_flag symmetric to the yyjson_write_flag, so that non standard json's can be both written and read (#374) 2025-03-08 09:01:11 +08:00
George Evmenov ec8c19fa3e fix build with llvm-18 by changing Bytestring type to std::vector instead of deprecated std::basic_string<std::byte> (#369) 2025-03-02 07:23:40 +08:00
Dr. Patrick Urbanke (劉自成) 1da93be27f Bugfix: DefaultIfMissing and XML arrays; #367 (#371) 2025-03-02 01:25:33 +08:00
Dr. Patrick Urbanke (劉自成) 37dbcef95a Make sure that floating point values are serialized properly in YAML; #363 (#370) 2025-03-01 14:51:46 +08:00