hazby2002
2d45ddfdc8
Change all decay to remove_cvref.
2023-12-29 17:05:16 +08:00
hazby2002
38783b8907
Fix num_fields to support c-style arrays.
2023-12-29 17:05:16 +08:00
liuzicheng1987
aabe753602
Merge branch 'main' into compile-time-regex
2023-12-28 21:49:50 +01:00
Patrick Urbanke
07942bb64d
Added more tests and more includes
2023-12-28 21:00:57 +01:00
liuzicheng1987
092f07fd43
Merge branch 'main' into 41-missing-headers
2023-12-28 20:28:25 +01:00
liuzicheng1987
f597f5fe6d
Merge pull request #38 from ChemiCalChems/relative-includes
...
Change project includes to relative (related to #30 )
2023-12-28 20:20:54 +01:00
GregTheMadMonk
f031b35452
Fix #41 : add an include and a fordward declaration
2023-12-28 21:01:25 +03:00
Txema Ynzenga
f89913f1a3
Use ctre::match in rfl/PatternValidator.hpp instead of std::regex
2023-12-28 13:46:36 +01:00
Txema Ynzenga
b2f515d0e5
Add external dependency: Hanickadot's CTRE v3.8.1
...
Copied directly from https://github.com/hanickadot/compile-time-regular-expressions/blob/v3.8.1/single-header/ctre.hpp
2023-12-28 13:19:48 +01:00
Patrick Urbanke
de6e8ced1c
Bugfix in the Timestamp
2023-12-27 23:57:03 +01:00
Txema Ynzenga
e30e41183d
Make rfl/to_view.hpp include relative
2023-12-26 12:58:31 +01:00
Txema Ynzenga
a28d649311
Merge rfl/to_view.hpp changes into relative-includes
2023-12-26 12:57:58 +01:00
Patrick Urbanke
7de20db53e
Added support for rfl::to_view; #32
2023-12-24 13:50:23 +01:00
Txema Ynzenga
c5e5815e73
Change project includes to relative
2023-12-23 01:04:57 +01:00
Patrick Urbanke
8ed390c3bf
Suppress GCC warning
2023-12-22 19:43:19 +01:00
Patrick Urbanke
54469a88a5
Use old way of handling reflection types
2023-12-21 23:24:11 +01:00
Patrick Urbanke
be7b1932a5
Made sure that attributes are written properly
2023-12-21 22:43:32 +01:00
Patrick Urbanke
c5347eee28
Added XML support; #21
2023-12-20 21:07:36 +01:00
Patrick Urbanke
2281849dde
Removed all relatives includes; #30
2023-12-20 21:06:11 +01:00
Patrick Urbanke
87a76193e1
Added virtual destructor to make clang happy
2023-12-19 22:56:28 +01:00
Patrick Urbanke
72e29d32e1
std::tuple_size{} to std::tuple_size_v whereever applicable
2023-12-17 21:23:05 +01:00
Lixin Wei
75ebc0e897
Update no_duplicate_field_names.hpp
2023-12-17 20:04:46 +08:00
Ed Catmur
f429bd994a
Serialization of std::reference_wrapper
...
Only for serialization - similarly to pointers, this should not be used for deserialization.
As discussed https://github.com/getml/reflect-cpp/pull/20#issuecomment-1857491501 this requires changing the implementation of bind_to_tuple, since std::ref() collapses on a std::reference_wrapper.
2023-12-16 05:31:13 +00:00
Patrick Urbanke
a547abd8c1
Added support for flag enums; handle unidentified enums
2023-12-14 19:38:52 +01:00
liuzicheng1987
79c24add9a
Merge pull request #20 from ChemiCalChems/reduce-boilerplate
...
Reduce boilerplate 2, electric boogaloo, and extras
2023-12-10 12:52:18 +01:00
Patrick Urbanke
7ab3026dbe
Fixed minor issues in the enum name extraction
2023-12-09 22:44:38 +01:00
Txema Ynzenga
28c602e195
Remove boilerplate to rfl::internal::to_ptr_field_tuple
...
Also ensure the same behavioral changes that happened to
move/copy_to_field_tuple are actual for to_ptr_field_tuple by wrapping
in fields if necessary
2023-12-09 21:50:37 +01:00
Txema Ynzenga
b86d2078e1
Remove boilerplate from rfl::internal::move_to_field_tuple
2023-12-09 21:21:10 +01:00
Txema Ynzenga
0a86ff352d
Remove boilerplate from rfl::internal::to_ptr_tuple
2023-12-09 21:05:56 +01:00
Txema Ynzenga
cc6e4351be
Add rfl::internal::bind_to_tuple
2023-12-09 21:05:56 +01:00
Patrick Urbanke
e416283e41
Added support for enums; #3
2023-12-09 13:27:57 +01:00
Patrick Urbanke
2c761efdcd
Included the meta field retrieval
2023-12-08 00:13:14 +01:00
Patrick Urbanke
385f6434c5
Make sure that we can retrieve the type names and tags at compile time
2023-12-07 23:18:06 +01:00
Patrick Urbanke
243b40ca4c
Removed obsolete file
2023-12-06 23:27:55 +01:00
Patrick Urbanke
5e0de0246c
Added support for compile-time field name retrieval
2023-12-06 22:52:00 +01:00
Txema Ynzenga
ae58ddab5f
Remove boilerplate from rfl::internal::get_field_names
...
Also delete rfl::internal::get_field_name_ptrs, its previous purpose was
to store boilerplate but after the previous commit, and it only being
used in one place, it can be removed without issues
2023-12-06 17:47:11 +01:00
Txema Ynzenga
963465a0ab
Remove boilerplate in rfl::internal::get_field_name_ptrs
2023-12-06 17:33:23 +01:00
Txema Ynzenga
decaf003e2
Make rfl::internal::to_ptr_tuple constexpr
2023-12-06 17:31:12 +01:00
Txema Ynzenga
9944b743d0
Add rfl/internal/num_fields.hpp
2023-12-06 16:05:25 +01:00
Dirk Reinbach
264e1b6358
Fix pragma warning push/pop asymmetry
2023-12-05 14:09:18 +01:00
Patrick Urbanke
2e3872c651
Fixed -fsanitize=undefined issue; #16 , possibly #15
2023-12-04 20:16:09 +01:00
Patrick Urbanke
b84453a099
Disable false positives in MSVC compilation
2023-12-03 20:16:42 +01:00
Patrick Urbanke
c92f1d0b33
get_struct_name for MSVC
2023-12-03 17:38:25 +01:00
Patrick Urbanke
f2fb381063
Made sure that struct names can be retrieved on MSVC
2023-12-03 17:04:12 +01:00
Patrick Urbanke
1382a2a505
Compile the JSON tests separately
2023-12-03 16:52:24 +01:00
Patrick Urbanke
fc6da99f93
Minor fixes to the time stamps
2023-12-03 16:02:05 +01:00
Patrick Urbanke
38b7ac81c7
added a strptime implementation for MSVC
2023-12-02 23:05:41 +01:00
Patrick Urbanke
013325fcab
Minor tweaks to make sure things work on MSVC
2023-12-02 21:54:05 +01:00
Patrick Urbanke
fd92304a1c
Minor bugfix: Make sure that is_required is maintained inside Rename
2023-11-29 20:44:02 +01:00
Patrick Urbanke
456fc33613
Added support for tagged unions without explicitly tagging the structs
2023-11-28 19:09:14 +01:00