Commit Graph
41 Commits
Author SHA1 Message Date
Patrick Urbanke fa5c8fd998 Added concepts and constraints for the Parser 2023-10-21 18:24:44 +02:00
Patrick Urbanke ea3ce3632c Added support for better error messages 2023-10-21 14:19:32 +02:00
Patrick Urbanke 2d3d6340eb Use move semantics for std::shared_ptr and rfl::Box 2023-10-19 22:35:18 +02:00
Patrick Urbanke d6c4622b55 Move keys 2023-10-17 00:30:26 +02:00
Patrick Urbanke 278071f2c0 Replaced map with vector of key-value-pairs 2023-10-16 22:22:54 +02:00
Patrick Urbanke 013708b77c Removed unnecessary boilerplate code 2023-10-15 17:58:37 +02:00
Patrick Urbanke 4c020e7e82 Using std::array instead of std::vector for retrieving the fields 2023-10-15 14:29:41 +02:00
Patrick Urbanke 383dde14f5 Use string_view to compare the fields 2023-10-15 13:45:07 +02:00
Patrick Urbanke f34bdd76b9 Optimized the reading of the named tuples using field indices 2023-10-14 20:35:59 +02:00
Patrick Urbanke a0d17bd3c5 load_string and save_string in separate files 2023-10-14 18:59:54 +02:00
Patrick Urbanke f267bfa154 Added load and save 2023-10-14 00:04:17 +02:00
Patrick Urbanke 7129e5a2ce Revert "Build NamedTuple non-recursively"
This reverts commit 3db0bbb065.
2023-10-11 21:54:05 +02:00
Patrick Urbanke 3db0bbb065 Build NamedTuple non-recursively 2023-10-11 21:50:05 +02:00
Patrick Urbanke 823f796519 Added move constructor for different type to result 2023-10-11 21:49:50 +02:00
Patrick Urbanke 94b8ab368b Added tests for string map and string unordered map 2023-10-10 23:14:25 +02:00
Patrick Urbanke 5198a446aa Added support for various containers 2023-10-10 21:37:02 +02:00
Patrick Urbanke 23922db9c5 Added tests for various containers 2023-10-09 22:32:37 +02:00
Patrick Urbanke 745c7ead2c Added support for clang 2023-10-09 21:08:05 +02:00
Patrick Urbanke c7fe17cf77 Made sure we can replace structs with other structs 2023-10-08 11:23:46 +02:00
Patrick Urbanke 266defd578 Made sure rfl::as works as intended 2023-10-08 10:56:20 +02:00
Patrick Urbanke a5504d7db7 Make sure that we are consistently following the Rule of 5 2023-10-08 03:21:38 +02:00
Patrick Urbanke fed24baea5 Added tests for replace_flatten 2023-10-07 21:37:19 +02:00
Patrick Urbanke c365d1b308 Made sure we support zero-copy replace 2023-10-07 21:00:01 +02:00
Patrick Urbanke 2b50fb8ce0 Made the .to_class(...) method optional 2023-10-07 13:53:16 +02:00
Patrick Urbanke 21803f509e Added support for std::unique_ptr and rfl::Box 2023-10-07 12:23:48 +02:00
Patrick Urbanke f708348fb1 Added support for timestamps 2023-10-04 21:29:06 +02:00
Patrick Urbanke 6d03f28eb2 Use std::move for the NamedTuple parser 2023-10-03 21:48:29 +02:00
Patrick Urbanke cdaded607f Use std::move more aggressively 2023-10-03 21:45:38 +02:00
Patrick Urbanke 2c86d80626 Added support for std::array 2023-10-03 21:35:25 +02:00
Patrick Urbanke a4bd3dbe4c Added a custom parser 2023-10-03 16:01:46 +02:00
Patrick Urbanke fb656f51cc Catch exceptions thrown in constructors 2023-10-03 14:44:20 +02:00
Patrick Urbanke b85a53f087 Check for duplicate fields names in externally tagged variants 2023-10-03 12:22:56 +02:00
Patrick Urbanke 01d9c3aee7 Removed rfl::Enum, it is replaced by the externally tagged variant 2023-10-03 12:15:55 +02:00
Patrick Urbanke ce5ec98815 Added the field variant 2023-10-03 11:27:42 +02:00
Patrick Urbanke b1c8d6de25 Fixed typos in the TaggedUnion 2023-10-02 23:43:33 +02:00
Patrick Urbanke a3f693c5e8 Beautification and optimization 2023-10-02 22:15:31 +02:00
Patrick Urbanke 656929f6e2 Added perfect forwarding to Result 2023-10-02 21:55:58 +02:00
Patrick Urbanke 53cbbad588 Added helper constructors to the TaggedUnion 2023-10-02 21:55:45 +02:00
Patrick Urbanke b67a2fabab Added support for setting default values 2023-10-02 19:12:01 +02:00
Patrick Urbanke cf908b44e3 Added perfect forwarding and make_... 2023-09-30 23:53:08 +02:00
Patrick Urbanke 9a10b2f55e Added code and first tests 2023-09-30 22:02:10 +02:00