Commit Graph
496 Commits
Author SHA1 Message Date
liuzicheng1987 6bb95ff09b More efficient way of parsing array-like data structures. (#98) 2024-05-07 20:43:04 +02:00
Joshua Burrell cca24a99ea [fix] 64bit int support for json (#92) 2024-05-06 21:40:29 +02:00
liuzicheng1987 14aa764a62 Removed duplicate sentence 2024-05-04 11:14:55 +02:00
liuzicheng1987andPatrick Urbanke 15f2c632dd Added support for processors; resolves #67 (#94)
Co-authored-by: Patrick Urbanke <patrick@getml.com>
v0.10.0
2024-05-01 20:08:06 +02:00
liuzicheng1987 32a345d368 Added Github action pipelines for macos-x64 and macos-arm (#93) 2024-04-28 13:34:49 +02:00
toge bb3dc34eae fix older msvc(19.36) compilation error (#91) 2024-04-23 18:25:23 +02:00
liuzicheng1987 325d163196 Use GTest; resolves #34 (#90) v0.9.0 2024-04-22 23:12:35 +02:00
liuzicheng1987 bf1c9bea36 Made sure that Github Actions also work for MSVC (#88) 2024-04-21 14:47:12 +02:00
liuzicheng1987 8a858d2cca Add support for msgpack; resolves #26 (#87) 2024-04-21 12:03:36 +02:00
Patrick Urbanke 2f499714f8 Updated the minimum required CMake version 2024-04-18 20:14:21 +02:00
Patrick Urbanke 4d2116ad4c Beautified the inheritance tests 2024-04-18 20:12:32 +02:00
Patrick Urbanke 3f4def672e Made sure we can read larger integers, fixes #85 2024-04-18 20:12:16 +02:00
Patrick Urbanke bcf34831f1 Merge branch 'main' of github.com:getml/reflect-cpp 2024-04-16 22:59:44 +02:00
Patrick Urbanke 62619d4a19 Better error messages for tagged unions 2024-04-16 00:48:43 +02:00
Lixin Wei fbeca9b095 Support one-level inheritance cases (#83)
* Substract base class param from num of fields

* Fix comments from @schaumb

* Fix CI

* fix comments from @liuzicheng1987

* fix some comments form @schaumb

* rename some funcs

* one-level inheritance fixed

* fix CI
2024-04-11 16:54:17 +02:00
Patrick Urbanke b38f12ecdf More efficient way of parsing variants 2024-04-10 22:55:06 +02:00
liuzicheng1987 b5338f0142 Merge pull request #81 from hlewin/inheritance_fix 2024-04-09 08:00:24 +02:00
Heiko Lewin 1146f76bde More elegant formulation 2024-04-08 16:02:16 +02:00
Heiko Lewin 0b33c92c9b Fix names of inherited members being prefixed with the base-class's name when using clang 2024-04-08 10:42:42 +02:00
liuzicheng1987 bf20fa6b57 Merge pull request #78 from hlewin/fix-typo
reflectcpp-config.cmake.in: Fix typo in check_required_components
2024-04-05 10:56:30 +02:00
Heiko Lewin 52cf3ed7d4 reflectcpp-config.cmake.in: Fix typo in check_required_components 2024-04-05 08:33:55 +02:00
liuzicheng1987 47111ba1d8 Merge pull request #77 from hlewin/install_library
Add cmake config module
2024-04-01 16:56:43 +02:00
Heiko Lewin 8c1f9d1ee3 Add cmake config module 2024-04-01 14:38:48 +02:00
liuzicheng1987 843b846d1a Merge pull request #76 from hlewin/use_build_shared_libs
Use BUILD_SHARED_LIBS as default value for REFLECTCPP_BUILD_SHARED
2024-04-01 13:55:33 +02:00
Patrick Urbanke 648d628de5 Explicit equality operator in Literal 2024-04-01 13:31:45 +02:00
Patrick Urbanke df488ec79e Changed the semantics of .add and .replace in NamedTuple 2024-04-01 13:31:31 +02:00
Patrick Urbanke 23c5a603ae Added more reliable checks in Parser_tagged_union 2024-04-01 13:31:14 +02:00
Heiko Lewin 78554708dc Use BUILD_SHARED_LIBS as default value for REFLECTCPP_BUILD_SHARED 2024-04-01 12:16:17 +02:00
Patrick Urbanke 1dcd6af373 Added Names to NamedTuple 2024-03-31 17:45:09 +02:00
Patrick Urbanke 916323495c Added const std::shared_ptr 2024-03-31 16:57:54 +02:00
Patrick Urbanke de1de23d35 Added documentation for the new tagged unions 2024-03-31 14:47:22 +02:00
Patrick Urbanke 63e7bf3d81 Allow tagged unions with explicit tags 2024-03-31 14:37:34 +02:00
Patrick Urbanke 9af2fed46f Allow empty Literals 2024-03-31 14:36:59 +02:00
Patrick Urbanke 32ac265293 Made sure we can serialize and deserialize empty structs 2024-03-31 12:33:54 +02:00
Patrick Urbanke 6f01c3fccb Minor bugfix in copy_from_named_tuple 2024-03-31 11:44:34 +02:00
Patrick Urbanke 12a294af71 Allow writing from pointers 2024-03-31 11:42:20 +02:00
Patrick Urbanke 86f73123d2 Allow creation of box and ref through std::unique_ptr and std::shared_ptr respectively 2024-03-31 11:40:22 +02:00
Patrick Urbanke 4fa84ffd30 Bugfix and added test for shared_ptr 2024-03-31 11:14:58 +02:00
Patrick Urbanke 1f0dcf591e Added TOML support 2024-03-29 12:24:43 +01:00
Patrick Urbanke 1f2e216c75 Fixed typo 2024-03-29 11:59:09 +01:00
Patrick Urbanke d21dc1c0c9 Added documentation for the JSON schema 2024-03-29 11:57:31 +01:00
liuzicheng1987 2efa82a1e5 Merge pull request #74 from grandseiken/main 2024-03-22 00:14:20 +08:00
stu 270d27d396 also for empty named tuple 2024-03-21 12:42:53 +00:00
stu 3cfee3f62d revert change of F&& to const F& 2024-03-21 12:11:06 +00:00
Patrick Urbanke 58d89e717c Optimizationg for the reader and writer; #68 v0.8.0 2024-03-16 09:58:26 +01:00
Patrick Urbanke 54785ec893 Use std::string_view for the field names during the write process 2024-03-10 16:32:53 +01:00
Patrick Urbanke 2e5f0737a9 Fixed from_named_tuple 2024-03-06 16:25:33 +01:00
Patrick Urbanke 58f1e41c83 Added support for monadic operations on the named tuples 2024-03-06 14:21:33 +01:00
Patrick Urbanke 1e6bf03387 Minor bugfix in get_type_name 2024-03-03 17:13:15 +01:00
Patrick Urbanke eaa715362c Added explanatory notes for clang on windows 2024-03-03 11:08:29 +01:00