diff --git a/README.md b/README.md index 7f56e6ce..c4375ec4 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![Generic badge](https://img.shields.io/badge/C++-20-blue.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/gcc-11+-blue.svg)](https://shields.io/) -[![Generic badge](https://img.shields.io/badge/clang-14+-blue.svg)](https://shields.io/) +[![Generic badge](https://img.shields.io/badge/clang-16+-blue.svg)](https://shields.io/) [![Generic badge](https://img.shields.io/badge/MSVC-TODO-red.svg)](https://shields.io/) ![image](banner1.png) -**reflect-cpp** is a C++-20 library for **fast serialization, deserialization and validation** using compile-time reflection, similar to [pydantic](https://github.com/pydantic/pydantic) in Python, [serde](https://github.com/serde-rs) in Rust, [encoding](https://github.com/golang/go/tree/master/src/encoding) in Go or [aeson](https://github.com/haskell/aeson/tree/master) in Haskell. +**reflect-cpp** is a C++-20 library for **fast serialization, deserialization and validation** using reflection, similar to [pydantic](https://github.com/pydantic/pydantic) in Python, [serde](https://github.com/serde-rs) in Rust, [encoding](https://github.com/golang/go/tree/master/src/encoding) in Go or [aeson](https://github.com/haskell/aeson/tree/master) in Haskell. As the aforementioned libraries are among the most widely used in the respective languages, reflect-cpp fills an important gap in C++ development. It reduces boilerplate code and increases code safety. @@ -21,7 +21,7 @@ Design principles for reflect-cpp include: - Simple installation: If no JSON support is required, reflect-cpp is header-only. For JSON support, only a single source file needs to be compiled. - Simple extendability to other serialization formats - Simple extendability to custom classes -- No macros +- Standard C++ only, no compiler-specific macros ## Why do we need this? @@ -29,7 +29,7 @@ Suppose your C++ program has complex data structures it needs to save and load. reflect-cpp is not just a reflection library, it is for **serialization, deserialization and validation** through reflection. -That means that you can encode your assumptions about the input data in the type system and have them validated upfront. This is why the library also includes algebraic data types like tagged unions and numerous validation routines. Having your assumptions encoded in the type system is the most reliable way of ensuring they are fullfilled. It also makes it a lot easier for anyone reading your code. If your assumptions are violated, the user of your software gets a very clear error message. +That means that you can encode your requirements about the input data in the type system and have them validated upfront. This is why the library also includes algebraic data types like tagged unions and numerous validation routines. Having your requirements encoded in the type system is the most reliable way of ensuring they are met. It also makes it a lot easier for anyone reading your code. If your requirements are not met, the user of your software gets a very clear error message. This increases user experience and developer experience, it makes your code safer (fewer bugs) and more secure (less prone to malicious attacks). @@ -38,7 +38,35 @@ For a more in-depth theoretical discussions of these topics, the following books - *Category Theory for Programmers* by Bartosz Milewski (https://github.com/hmemcpy/milewski-ctfp-pdf/releases) - *Domain Modeling Made Functional* by Scott Wlaschin -## Basic Example +## Simple Example + +```cpp +#include +#include + +struct Person { + std::string first_name; + std::string last_name; + int age; +}; + +const auto homer = + Person{.first_name = "Homer", + .last_name = "Simpson", + .age = 45}; + +// We can now write into and read from a JSON string. +const std::string json_string = rfl::json::write(homer); +auto homer2 = rfl::json::read(json_string).value(); +``` + +The resulting JSON string looks like this: + +```json +{"first_name":"Homer","last_name":"Simpson","age":45} +``` + +## More Comprehensive Example ```cpp #include @@ -49,49 +77,37 @@ For a more in-depth theoretical discussions of these topics, the following books // be validated automatically. using Age = rfl::Validator, rfl::Maximum<130>>; -// "firstName", "lastName" and "children" are the field names -// as they will appear in the JSON. The C++ standard is -// snake case, the JSON standard is camel case, so the names -// will not always be identical. struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"age", Age> age; - rfl::Field<"email", rfl::Email> email; - rfl::Field<"children", std::vector> children; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::string town = "Springfield"; + rfl::Timestamp<"%Y-%m-%d"> birthday; + Age age; + rfl::Email email; + std::vector children; }; const auto bart = Person{.first_name = "Bart", - .last_name = "Simpson", .birthday = "1987-04-19", .age = 10, - .email = "bart@simpson.com", - .children = std::vector()}; + .email = "bart@simpson.com"}; -const auto lisa = Person{ - .first_name = "Lisa", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 8, - .email = "lisa@simpson.com", - .children = rfl::default_value // same as std::vector() -}; +const auto lisa = Person{.first_name = "Lisa", + .birthday = "1987-04-19", + .age = 8, + .email = "lisa@simpson.com"}; -// Returns a deep copy of the original object, -// replacing first_name, email and age. -const auto maggie = - rfl::replace(lisa, rfl::make_field<"firstName">(std::string("Maggie")), - rfl::make_field<"email">(std::string("maggie@simpson.com")), - rfl::make_field<"age">(0)); +const auto maggie = Person{.first_name = "Maggie", + .birthday = "1987-04-19", + .age = 0, + .email = "maggie@simpson.com"}; const auto homer = - Person{.first_name = "Homer", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 45, - .email = "homer@simpson.com", - .children = std::vector({bart, lisa, maggie})}; + Person{.first_name = "Homer", + .birthday = "1987-04-19", + .age = 45, + .email = "homer@simpson.com", + .children = std::vector({bart, lisa, maggie})}; // We can now transform this into a JSON string. const std::string json_string = rfl::json::write(homer); @@ -104,7 +120,7 @@ rfl::json::write(homer, std::cout) << std::endl; This results in the following JSON string: ```json -{"firstName":"Homer","lastName":"Simpson","birthday":"1987-04-19","age":45,"email":"homer@simpson.com","children":[{"firstName":"Bart","lastName":"Simpson","birthday":"1987-04-19","age":10,"email":"bart@simpson.com","children":[]},{"firstName":"Lisa","lastName":"Simpson","birthday":"1987-04-19","age":8,"email":"lisa@simpson.com","children":[]},{"firstName":"Maggie","lastName":"Simpson","birthday":"1987-04-19","age":0,"email":"maggie@simpson.com","children":[]}]} +{"firstName":"Homer","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":45,"email":"homer@simpson.com","children":[{"firstName":"Bart","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":10,"email":"bart@simpson.com","children":[]},{"firstName":"Lisa","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":8,"email":"lisa@simpson.com","children":[]},{"firstName":"Maggie","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":0,"email":"maggie@simpson.com","children":[]}]} ``` We can also create structs from the string: @@ -129,7 +145,7 @@ reflect-cpp returns clear and comprehensive error messages: ```cpp const std::string faulty_json_string = - R"({"firstName":"Homer","lastName":12345,"birthday":"04/19/1987","age":145,"email":"homer(at)simpson.com"})"; + R"({"firstName":"Homer","lastName":12345,"town":"Springfield","birthday":"04/19/1987","age":145,"email":"homer(at)simpson.com"})"; const auto result = rfl::json::read(faulty_json_string); ``` @@ -144,81 +160,24 @@ Found 5 errors: 5) Field named 'children' not found. ``` -## Anonymous fields - -`rfl::Field` is only necessary if you want to serialize field names. If you don't (possibly because you are using a binary format), you do not need to annotate your fields: - -```cpp -using Age = rfl::Validator, rfl::Maximum<130>>>; - -struct Person { - std::string first_name; - std::string last_name; - rfl::Timestamp<"%Y-%m-%d"> birthday; - Age age; - rfl::Email email; - std::vector children; -}; - -const auto bart = Person{.first_name = "Bart", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 10, - .email = "bart@simpson.com"}; - -const auto lisa = Person{.first_name = "Lisa", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 8, - .email = "lisa@simpson.com"}; - -const auto maggie = Person{.first_name = "Maggie", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 0, - .email = "maggie@simpson.com"}; - -const auto homer = - Person{.first_name = "Homer", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 45, - .email = "homer@simpson.com", - .children = std::vector({bart, lisa, maggie})}; -``` - -This results in the following JSON string: - -```json -["Homer","Simpson","1987-04-19",45,"homer@simpson.com",[["Bart","Simpson","1987-04-19",10,"bart@simpson.com",[]],["Lisa","Simpson","1987-04-19",8,"lisa@simpson.com",[]],["Maggie","Simpson","1987-04-19",0,"maggie@simpson.com",[]]]] -``` - ## Algebraic data types reflect-cpp supports Pydantic-style tagged unions, which allow you to form algebraic data types: ```cpp - // All alternatives must contain a field named "shape". The type - // of the field must be an rfl::Literal. struct Circle { - rfl::Field<"shape", rfl::Literal<"Circle">> shape = rfl::default_value; - rfl::Field<"radius", double> radius; + double radius; }; struct Rectangle { - rfl::Field<"shape", rfl::Literal<"Rectangle">> shape = - rfl::default_value; - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; + double height; + double width; }; struct Square { - rfl::Field<"shape", rfl::Literal<"Square">> shape = rfl::default_value; - rfl::Field<"width", double> width; + double width; }; -// Now you tell rfl::TaggedUnion that you want it to look for the field "shape". using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; const Shapes r = Rectangle{.height = 10, .width = 5}; @@ -272,6 +231,7 @@ In addition, it supports the following custom containers: - `rfl::Result`: Allows for exception-free programming. - `rfl::TaggedUnion`: Similar to `std::variant`, but with explicit tags that make parsing more efficient. - `rfl::Validator`: Allows for automatic input validation. +- `rfl::Variant`: An alternative to `std::variant`. ### Custom classes @@ -302,7 +262,7 @@ At the moment, this is work-in-progress. Here are some things that are still mis The following compilers are supported: - GCC 11.4 or higher -- Clang 14.0 or higher +- Clang 16.0 or higher - MSVC (TODO) ### Option 1: Header-only diff --git a/docs/README.md b/docs/README.md index 1c12ac6d..a00eb16d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,7 +10,7 @@ 1.3) [Struct flattening](https://github.com/getml/reflect-cpp/blob/main/docs/flatten_structs.md) - For making struct A "inherit" the fields of struct B. -1.4) [Anonymous fields](https://github.com/getml/reflect-cpp/blob/main/docs/anonymous_fields.md) - For structs without field names or `rfl::Field`. +1.4) [The rfl::Field-syntax](https://github.com/getml/reflect-cpp/blob/main/docs/field_syntax.md) - Describes an alternative syntax which requires slightly more effort, but allows for some powerful functionalities. 1.5) [String literals](https://github.com/getml/reflect-cpp/blob/main/docs/literals.md) - For representing strings that can only assume a limited number of enumerated values. diff --git a/docs/as.md b/docs/as.md index b0451986..300c8b9a 100644 --- a/docs/as.md +++ b/docs/as.md @@ -3,6 +3,8 @@ `rfl::as` allows you to cast structs as other structs. This is useful if the fields in `B` are a subset of the fields in `A` or we need the fields in `A` and `B` to produce `C`. +This only works for the `rfl::Field`-syntax. + For example: ```cpp diff --git a/docs/backwards_compatability.md b/docs/backwards_compatability.md index a86ab058..50a36b7d 100644 --- a/docs/backwards_compatability.md +++ b/docs/backwards_compatability.md @@ -6,9 +6,9 @@ For the purpose of this section, any field of type `std::optional`, `std::shared Please refer to the section on optional fields for details. -## Structs with `rfl::Field` and `rfl::NamedTuple` +## Rules -For structs with `rfl::Field` and `rfl::NamedTuple`, the following rules apply: +The following rules apply: - You *can* add optional fields. - You *can* remove any optional or required fields, if they are no longer needed. @@ -17,15 +17,6 @@ For structs with `rfl::Field` and `rfl::NamedTuple`, the following rules apply: - You *can not* add any required fields. - You *can not* change the field names of any required fields. -## Structs without `rfl::Field` (anonymous fields) and `std::tuple` - -For structs without `rfl::Field` and `std::tuple`, the following rules apply: - -- You *can* add optional fields at the end of your struct or tuple. -- You *can not* remove any optional or required fields, even if they are no longer needed. -- You *can not* change the order of any existing fields. -- You *can not* add any required fields. - ## API versioning If you find it difficult to follow the rules as stated above or you cannot guarantee that you @@ -35,12 +26,12 @@ You can either use `rfl::TaggedUnion` or externally tagged variants: ```cpp struct API_v_1_0 { - rfl::Field<"version", rfl::Literal<"v1.0">> version; + using Tag = rfl::Literal<"v1.0">; ... }; struct API_v_1_1 { - rfl::Field<"version", rfl::Literal<"v1.1">> version; + using Tag = rfl::Literal<"v1.1">; ... }; diff --git a/docs/composing_validators.md b/docs/composing_validators.md index 33a348b3..358eaa14 100644 --- a/docs/composing_validators.md +++ b/docs/composing_validators.md @@ -13,9 +13,9 @@ using Age = rfl::Validator, rfl::Maximum<130>>>; struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", Age> age; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + Age age; }; ``` diff --git a/docs/custom_classes.md b/docs/custom_classes.md index 878d64ef..7e44613d 100644 --- a/docs/custom_classes.md +++ b/docs/custom_classes.md @@ -18,9 +18,9 @@ If you absolutely do not want to make any changes to your original class, you ca ```cpp struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", int> age; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + int age; }; class Person { @@ -107,7 +107,7 @@ initialized or face runtime errors. ```cpp struct PersonImpl { - // ... same as in Example 2 + // ... same as in Example 1 or 2 }; class Person { diff --git a/docs/custom_parser.md b/docs/custom_parser.md index 1a045a12..a0576c85 100644 --- a/docs/custom_parser.md +++ b/docs/custom_parser.md @@ -53,9 +53,9 @@ You can then write a helper struct: ```cpp struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", int> age; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + int age; // 1) Static method that takes your original class as an input and // returns the helper struct. @@ -70,7 +70,7 @@ struct PersonImpl { // into your original class. // In this case, the `to_class` method is actually optional, because // you can directly create Person from the field values. - Person to_class() const { return Person(first_name(), last_name(), age()); } + Person to_class() const { return Person(first_name(), last_name(), age); } }; ``` @@ -100,9 +100,9 @@ As we have noted, in this particular example, the `Person` class can be construc ```cpp struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", int> age; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + int age; static PersonImpl from_class(const Person& _p) noexcept { return PersonImpl{.first_name = _p.first_name(), diff --git a/docs/field_syntax.md b/docs/field_syntax.md new file mode 100644 index 00000000..15ea0421 --- /dev/null +++ b/docs/field_syntax.md @@ -0,0 +1,85 @@ +# The `rfl::Field`-syntax + +As we have shown, reflect-cpp can automatically detect field names from structs. + +However, it also possible to annotate the fields using `rfl::Field`, like this: + +```cpp +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"children", std::vector> children; +}; +``` + +Even though this requires slightly more effort from the programmer, it has an important +advantage: These field names are known at *compile time*, whereas the field names which +are retrieved automatically are only known at *runtime*. Even though the runtime overhead +should be negligible in most cases, this allows for compile-time checks +which are otherwise impossible. It also allows for functionalities like `rfl::replace`, +`rfl::as` or interactions with `rfl::NamedTuple` which we will see later in the documentation. + +There are a two things you have to keep in mind: + +1) If you annotate *some* of the fields using `rfl::Field`, then you must annotate *all* of them. +2) If you are combining structs using `rfl::Flatten`, then they structs combined like this must either be annotated or not. + +You can initilize your struct like this: + +```cpp +const auto bart = Person{.first_name = "Bart", + .last_name = "Simpson", + .children = std::vector()}; +``` + +Note that all fields must be explicitly set. This is on purpose, because it prevents you from accidentally forgetting fields, +which can lead to tricky runtime errors. + +You can initialize a field using `rfl::default_value`: + +```cpp +const auto bart = Person{.first_name = "Bart", + .last_name = "Simpson", + .children = rfl::default_value}; +``` + +You can also initialize fields in the struct declaration itself: + +```cpp +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::vector> children = rfl::default_value; +}; +``` + +Because you now have explicitly set those fields, you do not have to do this every time: + +```cpp +const auto bart = Person{.first_name = "Bart"}; + +const auto lisa = Person{.first_name = "Lisa"}; + +const auto maggie = Person{.first_name = "Maggie"}; + +const auto homer = Person{.first_name = "Homer", + .children = std::vector({bart, lisa, maggie})}; + +``` + +You can write this to a JSON string: + +```cpp +const auto json_string = rfl::json::write(homer); +``` + +```json +{"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson","children":[]},{"firstName":"Lisa","lastName":"Simpson","children":[]},{"firstName":"Maggie","lastName":"Simpson","children":[]}]} +``` + +And you can parse it back into a struct: + +```cpp +const auto homer = rfl::json::read(json_string).value(); +``` + diff --git a/docs/flatten_structs.md b/docs/flatten_structs.md index a13ad43d..8544f638 100644 --- a/docs/flatten_structs.md +++ b/docs/flatten_structs.md @@ -9,7 +9,38 @@ all fields will be flattened to a single JSON object. If there are duplicate field names, you will get a compile-time error. -## Example: Every employee is a person. +## Example: Every employee is a person + +```cpp +struct Person { + std::string first_name; + std::string last_name; + int age; +}; + +struct Employee { + rfl::Flatten person; + std::string employer; + float salary; +}; + +const auto employee = Employee{ + .person = Person{.first_name = "Homer", + .last_name = "Simpson", + .age = 45}, + .employer = "Mr. Burns", + .salary = 60000.0}; + +const auto json_str = rfl::json::write(employee); +``` + +This flattens all fields into a single JSON object: + +```json +{"first_name":"Homer","last_name":"Simpson","age":45,"salary":60000.0} +``` + +## Example, using the `rfl::Field`-syntax. ```cpp struct Person { diff --git a/docs/flexbuffers.md b/docs/flexbuffers.md index c9386f2c..864171cf 100644 --- a/docs/flexbuffers.md +++ b/docs/flexbuffers.md @@ -146,67 +146,9 @@ builder.Finish(orc); // Serialize the root of the object. I think it should be fairly obvious that using reflect-cpp on top drastically reduces the amount of boilerplate code. -## Adding field names But what it more, unlike "normal" flatbuffers, flexbuffers also supports field names. Field names make it a lot easier to maintain backwards compatability. -```cpp -#include -#include - -using Color = rfl::Literal<"Red", "Green", "Blue">; - -struct Weapon { - rfl::Field<"name", std::string> name; - rfl::Field<"damage", short> damage; -}; - -using Equipment = rfl::Variant>; - -struct Vec3 { - rfl::Field<"x", float> x; - rfl::Field<"y", float> y; - rfl::Field<"z", float> z; -}; - -struct Monster { - rfl::Field<"pos", Vec3> pos; - rfl::Field<"mana", short> mana = 150; - rfl::Field<"hp", short> hp = 100; - rfl::Field<"name", std::string> name; - rfl::Field<"friendly", bool> friendly = false; - rfl::Field<"inventory", std::vector> inventory; - rfl::Field<"color", Color> color = Color::make<"Blue">(); - rfl::Field<"weapons", std::vector> weapons; - rfl::Field<"equipped", Equipment> equipped; - rfl::Field<"path", std::vector> path; -}; - -const auto sword = Weapon{.name = "Sword", .damage = 3}; -const auto axe = Weapon{.name = "Axe", .damage = 5}; - -const auto weapons = std::vector({sword, axe}); - -const auto position = Vec3{1.0f, 2.0f, 3.0f}; - -const auto inventory = - std::vector({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}); - -const auto orc = Monster{.pos = position, - .mana = 150, - .hp = 80, - .name = "MyMonster", - .inventory = inventory, - .color = Color::make<"Red">(), - .weapons = weapons, - .equipped = rfl::make_field<"weapon">(axe), - .path = rfl::default_value}; - -const auto bytes = rfl::flexbuf::write(orc); - -const auto res = rfl::flexbuf::read(bytes); -``` - ## Reading and writing Suppose you have a struct like this: @@ -279,9 +221,9 @@ In your header file you can write something like this: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; using InputVarType = typename rfl::flexbuf::Reader::InputVarType; static rfl::Result from_flexbuf(const InputVarType& _obj); diff --git a/docs/json.md b/docs/json.md index 3b21930e..809e7d07 100644 --- a/docs/json.md +++ b/docs/json.md @@ -8,10 +8,10 @@ Suppose you have a struct like this: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"children", std::vector> children; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; + std::vector children; }; ``` @@ -72,9 +72,9 @@ In your header file you can write something like this: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; using JSONVar = typename rfl::json::Reader::InputVarType; static rfl::Result from_json_obj(const JSONVar& _obj); diff --git a/docs/literals.md b/docs/literals.md index 6671a490..790a29bc 100644 --- a/docs/literals.md +++ b/docs/literals.md @@ -57,10 +57,9 @@ using FirstName = rfl::Literal<"Homer", "Marge", "Bart", "Lisa", "Maggie">; using LastName = rfl::Literal<"Simpson">; struct Person { - rfl::Field<"firstName", FirstName> first_name; - rfl::Field<"lastName", LastName> last_name = rfl::default_value; - rfl::Field<"children", std::vector> children = - rfl::default_value; + rfl::Rename<"firstName", FirstName> first_name; + rfl::Rename<"lastName", LastName> last_name; + std::vector children; }; // Leads to a runtime error, if the field "lastName" is not "Simpson" diff --git a/docs/named_tuple.md b/docs/named_tuple.md index 406c568d..3d192595 100644 --- a/docs/named_tuple.md +++ b/docs/named_tuple.md @@ -125,26 +125,6 @@ using Shapes = std::variant, rfl::Field<"square", Square>>; ``` -They can also be inserted into `rfl::TaggedUnion`: - -```cpp -using Circle = rfl::NamedTuple< - rfl::Field<"shape", rfl::Literal<"Circle">>, - rfl::Field<"radius", double>>; - -using Rectangle = rfl::NamedTuple< - rfl::Field<"shape", rfl::Literal<"Rectangle">>, - rfl::Field<"height", double>, - rfl::Field<"width", double>>; - -using Square rfl::NamedTuple< - rfl::Field<"shape", rfl::Literal<"Square">>, - rfl::Field<"width", double>>; - -// Tell rfl::TaggedUnion that you want it to look for the field "shape". -using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; -``` - ### `rfl::replace` `rfl::replace` works for `rfl::NamedTuple` as well: @@ -214,7 +194,7 @@ const auto employee = Employee( ## Transforming structs to named tuples and vice versa -You can transform structs to named tuples and vice versa: +You can transform structs to named tuples and vice versa (this will only work with the `rfl::Field`-syntax: ```cpp auto bart = Person{.first_name = "Bart", @@ -236,15 +216,3 @@ const auto bart_struct = rfl::from_named_tuple(bart_nt); const auto bart_struct = rfl::from_named_tuple(std::move(bart_nt)); ``` -## rfl::NamedTuple is central to reflect-cpp - -`rfl::NamedTuple` is basically at the heart of how the reflect-cpp reflection -is actually implemented. If you look at how reflect-cpp is implemented you will find that -structs are transformed from and to `rfl::NamedTuple`s -all the time (using zero-copy operations wherever possible). -That is because `rfl::NamedTuple` actually support reflection, -where as structs don't. - - - - diff --git a/docs/optional_fields.md b/docs/optional_fields.md index 19fb4ce8..ba7f91cf 100644 --- a/docs/optional_fields.md +++ b/docs/optional_fields.md @@ -19,11 +19,11 @@ So this is how we could rewrite the previous example: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; // Indicates to the library that the field is optional. - rfl::Field<"children", std::optional>> children = rfl::default_value; + std::optional> children; }; const auto bart = Person{.first_name = "Bart"}; diff --git a/docs/replace.md b/docs/replace.md index b8c624a8..3ae0358a 100644 --- a/docs/replace.md +++ b/docs/replace.md @@ -1,7 +1,8 @@ # `rfl::replace` -`rfl::replace` creates a deep copy of the original struct or moves the original struct, replacing one or several -fields in the process. +`rfl::replace` creates a deep copy of the original struct or moves the original struct, replacing one or several fields in the process. + +This only works for the `rfl::Field`-syntax. In some cases, we really only want to change one or a few fields, to get from one struct to another: diff --git a/docs/rfl_ref.md b/docs/rfl_ref.md index 56588377..60bc7a93 100644 --- a/docs/rfl_ref.md +++ b/docs/rfl_ref.md @@ -4,9 +4,9 @@ In previous sections, we have defined the `Person` class recursively: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"children", std::vector> children; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + std::vector children; }; ``` @@ -15,9 +15,9 @@ This works, because `std::vector` contains a pointer under-the-hood. But what wo ```cpp // WILL NOT COMPILE struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"child", Person> child; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + Person child; }; ``` @@ -33,15 +33,15 @@ A naive implementation might look like this: // WILL NOT COMPILE struct DecisionTree { struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"prediction", double> prediction; + using Tag = rfl::Literal<"Leaf">; + double prediction; }; struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"lesser", DecisionTree> lesser; - rfl::Field<"greater", DecisionTree> greater; + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + DecisionTree lesser; + DecisionTree greater; }; using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; @@ -58,15 +58,15 @@ A possible solution might be to use `std::unique_ptr`: // Will compile, but not an ideal design. struct DecisionTree { struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"prediction", double> prediction; + using Tag = rfl::Literal<"Leaf">; + double prediction; }; struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"lesser", std::unique_ptr> lesser; - rfl::Field<"greater", std::unique_ptr> greater; + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + std::unique_ptr lesser; + std::unique_ptr greater; }; using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; @@ -90,15 +90,15 @@ still have code that compiles? By using `rfl::Box` instead of `std::unique_ptr`: ```cpp struct DecisionTree { struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"prediction", double> prediction; + using Tag = rfl::Literal<"Leaf">; + double prediction; }; struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"lesser", rfl::Box> lesser; - rfl::Field<"greater", rfl::Box> greater; + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + rfl::Box lesser; + rfl::Box greater; }; using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; @@ -144,15 +144,15 @@ If you want to use reference-counted pointers, instead of unique pointers, you c ```cpp struct DecisionTree { struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; + using Tag = rfl::Literal<"Leaf">; + double value; }; struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", rfl::Ref> lesser; - rfl::Field<"right", rfl::Ref> greater; + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + rfl::Ref lesser; + rfl::Ref greater; }; using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; diff --git a/docs/structs.md b/docs/structs.md index 09e17399..df0c6cf2 100644 --- a/docs/structs.md +++ b/docs/structs.md @@ -1,14 +1,12 @@ # Structs -In order to setup a struct, all of its fields need to be an `rfl::Field`. The `rfl::Field` contains the type and the name. -The name is a compile-time string and won't have any runtime overhead. The compile-time string is what will eventually -appear in the JSON (or any other format). +Structs can be set up as follows: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"children", std::vector> children; + std::string first_name; + std::string last_name; + std::vector children; }; ``` @@ -20,28 +18,28 @@ const auto bart = Person{.first_name = "Bart", .children = std::vector()}; ``` -Note that all fields must be explicitly set. This is on purpose, because it prevents you from accidentally forgetting fields, -which can lead to tricky runtime errors. - -You can initialize a field using `rfl::default_value`: +JSON uses Hungarian case, but C++ uses snake case, so you might want to rename your fields: ```cpp -const auto bart = Person{.first_name = "Bart", - .last_name = "Simpson", - .children = rfl::default_value}; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + std::vector children; +}; ``` + You can also initialize fields in the struct declaration itself: ```cpp struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::vector> children = rfl::default_value; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::vector children; }; ``` -Because you now have explicitly set those fields, you do not have to do this every time: +Because you now have explicitly set this field, you do not have to do this every time: ```cpp const auto bart = Person{.first_name = "Bart"}; @@ -78,7 +76,7 @@ const auto homer = rfl::json::read(json_string).value(); reflect-cpp needs to be able to create the structs like this: ```cpp -Person{rfl::Field<"firstName", std::string>("Bart"), rfl::Field<"lastName", std::string>("Simpson"), ...}; +Person{"Bart", "Simpson", ...}; ``` But if you create a custom constructor, then C++ will no longer allow this kind of constructions. diff --git a/docs/variants_and_tagged_unions.md b/docs/variants_and_tagged_unions.md index 09a7d682..0e2c3005 100644 --- a/docs/variants_and_tagged_unions.md +++ b/docs/variants_and_tagged_unions.md @@ -4,25 +4,23 @@ Sometimes you know that the JSON object can be one of several alternatives. For example, you might have several shapes like `Circle`, `Rectangle` or `Square`. For these kind of -cases, the C++ standard library contains `std::variant`: +cases, the C++ standard library contains `std::variant`, even though we we recommend you to use `rfl::Variant` instead: ```cpp struct Circle { - rfl::Field<"radius", double> radius; + double radius; }; struct Rectangle { - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; + double height; + double width; }; struct Square { - rfl::Field<"width", double> width; + double width; }; -// NOTE: If you are using anonymous fields, -// you would probably have to use `rfl::Variant` instead. -using Shapes = std::variant; +using Shapes = rfl::Variant; const Shapes r = Rectangle{.height = 10, .width = 5}; @@ -38,9 +36,90 @@ several problems with this: 2) It leads to confusing error messages: If none of the alternatives can be matched, you will get an error message telling you why each of the alternatives couldn't be matched. Such error messages are very long-winding and hard to read. 3) It is dangerous. Imagine we had written `std::variant` instead of `std::variant`. This would mean that `Rectangle` could never be matched, because the fields in `Square` are a subset of `Rectangle`. This leads to very confusing bugs. +## `rfl::TaggedUnion` (internally tagged) + +One way to solve this problem is to add a tag inside the class. That is why we have provided a helper class for these purposes: `rfl::TaggedUnion`. + +TaggedUnions use the name of the struct as an identifying tag. It will then try to take that field from the JSON object, match it to the correct alternative and then only parse the correct alternative. + +We will now rewrite the example from above using `rfl::TaggedUnion`: + +```cpp +struct Circle { + double radius; +}; + +struct Rectangle { + double height; + double width; +}; + +struct Square { + double width; +}; + +// Now you tell rfl::TaggedUnion that you want it to write the name +// of the struct into an extra field called "shape". +using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; + +const Shapes r = Rectangle{.height = 10, .width = 5}; + +const auto json_string = rfl::json::write(r); + +const auto r2 = rfl::json::read(json_string); +``` + +The resulting JSON looks like this: +```json +{"shape":"Rectangle","height":10.0,"width":5.0} +``` + +Because the tag is inside the JSON object, this is called *internally tagged*. +It is the standard in Python's [pydantic](https://docs.pydantic.dev/latest/api/standard_library_types/#union). + +It is also possible to set the tag explicitly: + +```cpp +struct Circle { + using Tag = rfl::Literal<"circle", "Circle">; + rfl::Field<"radius", double> radius; +}; + +struct Rectangle { + using Tag = rfl::Literal<"rectangle", "Rectangle">; + rfl::Field<"height", double> height; + rfl::Field<"width", double> width; +}; + +struct Square { + using Tag = rfl::Literal<"square", "Square">; + rfl::Field<"width", double> width; +}; + +using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; + +const Shapes r = Rectangle{.height = 10, .width = 5}; + +const auto json_string = rfl::json::write(r); + +const auto r2 = rfl::json::read(json_string); +``` + +The JSON generated by `rfl::json::write` looks like this: + +```json +{"shape":"rectangle","height":10.0,"width":5.0} +``` + +However, `rfl::json::read` would also accept this: + +```json +{"shape":"Rectangle","height":10.0,"width":5.0} +``` + ## `std::variant` or `rfl::Variant` (externally tagged) -From a functional programming point-of-view, the most straightforward way to handle these problems is to add tags. +Another approach is to add external tags. You can do that using `rfl::Field`: @@ -55,7 +134,6 @@ We can rewrite the example from above: ```cpp // Circle, Rectangle and Square are the same as above. - using Shapes = rfl::Variant, rfl::Field<"rectangle", Rectangle>, rfl::Field<"square", Square>>; @@ -75,62 +153,15 @@ The resulting JSON looks like this: Because the tag is external, this is called *externally tagged*. It is the standard in Rust's [serde-json](https://serde.rs/enum-representations.html). -## `rfl::TaggedUnion` (internally tagged) - -But sometimes you also want the tag to be inside the class itself. That is why we have provided a helper class for these purposes: `rfl::TaggedUnion`. - -TaggedUnions require some kind of identifying field on your struct, which must be expressed as an `rfl::Literal`. It will then try to take that field from the JSON object, match it to the correct alternative and then only parse the correct alternative. - -We will now rewrite the example from above using `rfl::TaggedUnion`: - -```cpp -struct Circle { - // All alternatives must contain a field named "shape". The type - // of the field must be an rfl::Literal. Since that Literal usually - // only contains one string (even though it doesn't have to), you can - // assign it to its default value. - rfl::Field<"shape", rfl::Literal<"Circle">> shape = rfl::default_value; - rfl::Field<"radius", double> radius; -}; - -struct Rectangle { - rfl::Field<"shape", rfl::Literal<"Rectangle">> shape = - rfl::default_value; - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; -}; - -struct Square { - rfl::Field<"shape", rfl::Literal<"Square">> shape = rfl::default_value; - rfl::Field<"width", double> width; -}; - -// Now you tell rfl::TaggedUnion that you want it to look for the field "shape". -using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; - -const Shapes r = Rectangle{.height = 10, .width = 5}; - -const auto json_string = rfl::json::write(r); - -const auto r2 = rfl::json::read(json_string); -``` - -The resulting JSON looks like this: -```json -{"shape":"Rectangle","height":10.0,"width":5.0} -``` - -Because the tag is inside the JSON object, this is called *internally tagged*. -It is the standard in Python's [pydantic](https://docs.pydantic.dev/latest/api/standard_library_types/#union). ## The visitor pattern In C++, the idiomatic way to handle `std::variant` and `rfl::TaggedUnion` is the [visitor pattern](https://en.cppreference.com/w/cpp/utility/variant/visit). -For instance, the externally tagged `std::variant` from the example above could be handled like this: +For instance, the externally tagged `rfl::Variant` from the example above could be handled like this: ```cpp -using Shapes = std::variant, +using Shapes = rfl::Variant, rfl::Field<"rectangle", Rectangle>, rfl::Field<"square", Square>>; @@ -152,10 +183,10 @@ const auto handle_shapes = [](const auto& field) { } }; -std::visit(handle_shapes, my_shape); +std::visit(handle_shapes, my_shape.variant()); ``` -Likewise, `rfl::TaggedUnion` is just an `std::variant` under-the-hood. The original variant can be +Likewise, `rfl::TaggedUnion` contains `std::variant` under-the-hood. The original variant can be retrieved using `.variant()`: ```cpp diff --git a/include/rfl.hpp b/include/rfl.hpp index 25f50941..75b0662e 100644 --- a/include/rfl.hpp +++ b/include/rfl.hpp @@ -12,6 +12,7 @@ #include "rfl/Pattern.hpp" #include "rfl/PatternValidator.hpp" #include "rfl/Ref.hpp" +#include "rfl/Rename.hpp" #include "rfl/Size.hpp" #include "rfl/TaggedUnion.hpp" #include "rfl/Timestamp.hpp" diff --git a/include/rfl/Rename.hpp b/include/rfl/Rename.hpp new file mode 100644 index 00000000..acc7f376 --- /dev/null +++ b/include/rfl/Rename.hpp @@ -0,0 +1,140 @@ +#ifndef RFL_RENAME_HPP_ +#define RFL_RENAME_HPP_ + +#include +#include +#include +#include +#include + +#include "rfl/Literal.hpp" +#include "rfl/default.hpp" +#include "rfl/internal/StringLiteral.hpp" + +namespace rfl { + +/// Used to define a field in the NamedTuple. +template +struct Rename { + /// The underlying type. + using Type = T; + + /// The name of the field. + using Name = rfl::Literal<_name>; + + Rename() : value_(Type()) {} + + Rename(const Type& _value) : value_(_value) {} + + Rename(Type&& _value) noexcept : value_(std::move(_value)) {} + + Rename(Rename<_name, T>&& _field) noexcept = default; + + Rename(const Rename<_name, Type>& _field) = default; + + template + Rename(const Rename<_name, U>& _field) : value_(_field.get()) {} + + template + Rename(Rename<_name, U>&& _field) : value_(_field.get()) {} + + template , + bool>::type = true> + Rename(const U& _value) : value_(_value) {} + + template , + bool>::type = true> + Rename(U&& _value) noexcept : value_(std::forward(_value)) {} + + template , + bool>::type = true> + Rename(const Rename<_name, U>& _field) : value_(_field.value()) {} + + /// Assigns the underlying object to its default value. + template , + bool>::type = true> + Rename(const Default& _default) : value_(Type()) {} + + ~Rename() = default; + + /// The name of the field, for internal use. + constexpr static const internal::StringLiteral name_ = _name; + + /// Returns the underlying object. + const Type& get() const { return value_; } + + /// Returns the underlying object. + Type& operator()() { return value_; } + + /// Returns the underlying object. + const Type& operator()() const { return value_; } + + /// Assigns the underlying object. + auto& operator=(const Type& _value) { + value_ = _value; + return *this; + } + + /// Assigns the underlying object. + auto& operator=(Type&& _value) noexcept { + value_ = std::move(_value); + return *this; + } + + /// Assigns the underlying object. + template , + bool>::type = true> + auto& operator=(const U& _value) { + value_ = _value; + return *this; + } + + /// Assigns the underlying object to its default value. + template , + bool>::type = true> + auto& operator=(const Default& _default) { + value_ = Type(); + return *this; + } + + /// Assigns the underlying object. + Rename<_name, T>& operator=(const Rename<_name, T>& _field) = default; + + /// Assigns the underlying object. + Rename<_name, T>& operator=(Rename<_name, T>&& _field) = default; + + /// Assigns the underlying object. + template + auto& operator=(const Rename<_name, U>& _field) { + value_ = _field.get(); + return *this; + } + + /// Assigns the underlying object. + template + auto& operator=(Rename<_name, U>&& _field) { + value_ = std::forward(_field.value_); + return *this; + } + + /// Assigns the underlying object. + void set(const Type& _value) { value_ = _value; } + + /// Assigns the underlying object. + void set(Type&& _value) { value_ = std::move(_value); } + + /// Returns the underlying object. + Type& value() { return value_; } + + /// Returns the underlying object. + const Type& value() const { return value_; } + + /// The underlying value. + Type value_; +}; + +} // namespace rfl + +#endif diff --git a/include/rfl/internal/Field.hpp b/include/rfl/internal/Field.hpp new file mode 100644 index 00000000..5d498322 --- /dev/null +++ b/include/rfl/internal/Field.hpp @@ -0,0 +1,20 @@ +#ifndef RFL_INTERNAL_FIELD_TUPLE_T_HPP_ +#define RFL_INTERNAL_FIELD_TUPLE_T_HPP_ + +#include +#include +#include + +#include "rfl/internal/copy_to_field_tuple.hpp" + +namespace rfl { +namespace internal { + +template +using field_tuple_t = + typename std::invoke_result), T>::type; + +} +} // namespace rfl + +#endif diff --git a/include/rfl/internal/Fields.hpp b/include/rfl/internal/Fields.hpp new file mode 100644 index 00000000..b9b242ae --- /dev/null +++ b/include/rfl/internal/Fields.hpp @@ -0,0 +1,23 @@ +#ifndef RFL_INTERNAL_FIELDS_HPP_ +#define RFL_INTERNAL_FIELDS_HPP_ + +#include +#include +#include +#include +#include + +namespace rfl { +namespace internal { + +template +struct Fields { + std::array names_; + + std::unordered_map indices_; +}; + +} // namespace internal +} // namespace rfl + +#endif diff --git a/include/rfl/internal/fake_object.hpp b/include/rfl/internal/fake_object.hpp new file mode 100644 index 00000000..ec1026ba --- /dev/null +++ b/include/rfl/internal/fake_object.hpp @@ -0,0 +1,14 @@ +#ifndef RFL_INTERNAL_FAKEOBJECT_HPP_ +#define RFL_INTERNAL_FAKEOBJECT_HPP_ + +namespace rfl { +namespace internal { + +/// This is required to automatically retrieve the names. +template +extern T fake_object; + +} // namespace internal +} // namespace rfl + +#endif diff --git a/include/rfl/internal/get_field_names.hpp b/include/rfl/internal/get_field_names.hpp new file mode 100644 index 00000000..df0a2b97 --- /dev/null +++ b/include/rfl/internal/get_field_names.hpp @@ -0,0 +1,3305 @@ +#ifndef RFL_INTERNAL_GETFIELDNAMES_HPP_ +#define RFL_INTERNAL_GETFIELDNAMES_HPP_ + +#include +#include +#include +#include +#include +#include + +#include "rfl/internal/fake_object.hpp" +#include "rfl/internal/has_n_fields.hpp" +#include "rfl/internal/is_flatten_field.hpp" +#include "rfl/internal/is_rename.hpp" + +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundefined-var-template" +#endif + +namespace rfl { +namespace internal { + +template +struct Wrapper { + using Type = T; + T v; +}; + +template +Wrapper(T) -> Wrapper; + +// This workaround is necessary for clang. +template +constexpr auto wrap(const T& arg) noexcept { + return Wrapper{arg}; +} + +template +auto get_field_names(); + +template +auto get_field_name() { + using Type = std::decay_t::Type>>; + if constexpr (is_rename_v) { + using Name = typename Type::Name; + return std::array{Name().str()}; + } else if constexpr (is_flatten_field_v) { + return get_field_names>(); + } else { + const std::string func_name = + std::source_location::current().function_name(); + const size_t begin = func_name.find_last_of(":.") + 1; + if (begin == std::string::npos) { + return std::array{"f_" + std::to_string(i)}; + } + const size_t end = func_name.find_first_of("])}", begin); + if (end == std::string::npos) { + return std::array{"f_" + std::to_string(i)}; + } + return std::array{func_name.substr(begin, end - begin)}; + } +} + +template +auto concat_two_arrays(std::array&& _arr1, + std::array&& _arr2) { + std::array res; + for (size_t i = 0; i < N1; ++i) { + res[i] = std::move(_arr1[i]); + } + for (size_t i = 0; i < N2; ++i) { + res[i + N1] = std::move(_arr2[i]); + } + return res; +} + +template +auto concat_arrays(Head&& _head, Tail&&... _tail) { + if constexpr (sizeof...(_tail) == 0) { + return std::move(_head); + } else { + return concat_two_arrays(std::move(_head), + concat_arrays(std::move(_tail)...)); + } +} + +/*The following boilerplate code was generated using a Python script: +def make_field_template(num: int) -> str: + fields = ", ".join([f"f{i+1}" for i in range(num)]) + field_names = ", ".join( + [f"get_field_name<{i+1}, wrap(&f{i+1})>()" for i in range(num)] + ) + return ( + """ + } else if constexpr (has_n_fields) {""" + + ("auto& [" + fields + "] = fake_object;" if num > 0 else "") + + """ + return std::array({""" + + field_names + + "});" + ) + + +code = "".join((make_field_template(i) for i in range(101))) + +with open("generated_code5.cpp", "w", encoding="utf-8") as codefile: + codefile.write(code) +*/ + +template +auto get_field_names() { + if constexpr (std::is_pointer_v>) { + return get_field_names>(); + } else if constexpr (has_n_fields) { + return std::array{}; + } else if constexpr (has_n_fields) { + auto& [f1] = fake_object; + return concat_arrays(get_field_name<1, wrap(&f1)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2] = fake_object; + return concat_arrays(get_field_name<1, wrap(&f1)>(), + get_field_name<2, wrap(&f2)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3] = fake_object; + return concat_arrays(get_field_name<1, wrap(&f1)>(), + get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, + f29] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, + f43] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, + f57] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, + f71] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, + f85] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>(), + get_field_name<95, wrap(&f95)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>(), + get_field_name<95, wrap(&f95)>(), get_field_name<96, wrap(&f96)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>(), + get_field_name<95, wrap(&f95)>(), get_field_name<96, wrap(&f96)>(), + get_field_name<97, wrap(&f97)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97, f98] = + fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>(), + get_field_name<95, wrap(&f95)>(), get_field_name<96, wrap(&f96)>(), + get_field_name<97, wrap(&f97)>(), get_field_name<98, wrap(&f98)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97, f98, + f99] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>(), + get_field_name<95, wrap(&f95)>(), get_field_name<96, wrap(&f96)>(), + get_field_name<97, wrap(&f97)>(), get_field_name<98, wrap(&f98)>(), + get_field_name<99, wrap(&f99)>()); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97, f98, f99, + f100] = fake_object; + return concat_arrays( + get_field_name<1, wrap(&f1)>(), get_field_name<2, wrap(&f2)>(), + get_field_name<3, wrap(&f3)>(), get_field_name<4, wrap(&f4)>(), + get_field_name<5, wrap(&f5)>(), get_field_name<6, wrap(&f6)>(), + get_field_name<7, wrap(&f7)>(), get_field_name<8, wrap(&f8)>(), + get_field_name<9, wrap(&f9)>(), get_field_name<10, wrap(&f10)>(), + get_field_name<11, wrap(&f11)>(), get_field_name<12, wrap(&f12)>(), + get_field_name<13, wrap(&f13)>(), get_field_name<14, wrap(&f14)>(), + get_field_name<15, wrap(&f15)>(), get_field_name<16, wrap(&f16)>(), + get_field_name<17, wrap(&f17)>(), get_field_name<18, wrap(&f18)>(), + get_field_name<19, wrap(&f19)>(), get_field_name<20, wrap(&f20)>(), + get_field_name<21, wrap(&f21)>(), get_field_name<22, wrap(&f22)>(), + get_field_name<23, wrap(&f23)>(), get_field_name<24, wrap(&f24)>(), + get_field_name<25, wrap(&f25)>(), get_field_name<26, wrap(&f26)>(), + get_field_name<27, wrap(&f27)>(), get_field_name<28, wrap(&f28)>(), + get_field_name<29, wrap(&f29)>(), get_field_name<30, wrap(&f30)>(), + get_field_name<31, wrap(&f31)>(), get_field_name<32, wrap(&f32)>(), + get_field_name<33, wrap(&f33)>(), get_field_name<34, wrap(&f34)>(), + get_field_name<35, wrap(&f35)>(), get_field_name<36, wrap(&f36)>(), + get_field_name<37, wrap(&f37)>(), get_field_name<38, wrap(&f38)>(), + get_field_name<39, wrap(&f39)>(), get_field_name<40, wrap(&f40)>(), + get_field_name<41, wrap(&f41)>(), get_field_name<42, wrap(&f42)>(), + get_field_name<43, wrap(&f43)>(), get_field_name<44, wrap(&f44)>(), + get_field_name<45, wrap(&f45)>(), get_field_name<46, wrap(&f46)>(), + get_field_name<47, wrap(&f47)>(), get_field_name<48, wrap(&f48)>(), + get_field_name<49, wrap(&f49)>(), get_field_name<50, wrap(&f50)>(), + get_field_name<51, wrap(&f51)>(), get_field_name<52, wrap(&f52)>(), + get_field_name<53, wrap(&f53)>(), get_field_name<54, wrap(&f54)>(), + get_field_name<55, wrap(&f55)>(), get_field_name<56, wrap(&f56)>(), + get_field_name<57, wrap(&f57)>(), get_field_name<58, wrap(&f58)>(), + get_field_name<59, wrap(&f59)>(), get_field_name<60, wrap(&f60)>(), + get_field_name<61, wrap(&f61)>(), get_field_name<62, wrap(&f62)>(), + get_field_name<63, wrap(&f63)>(), get_field_name<64, wrap(&f64)>(), + get_field_name<65, wrap(&f65)>(), get_field_name<66, wrap(&f66)>(), + get_field_name<67, wrap(&f67)>(), get_field_name<68, wrap(&f68)>(), + get_field_name<69, wrap(&f69)>(), get_field_name<70, wrap(&f70)>(), + get_field_name<71, wrap(&f71)>(), get_field_name<72, wrap(&f72)>(), + get_field_name<73, wrap(&f73)>(), get_field_name<74, wrap(&f74)>(), + get_field_name<75, wrap(&f75)>(), get_field_name<76, wrap(&f76)>(), + get_field_name<77, wrap(&f77)>(), get_field_name<78, wrap(&f78)>(), + get_field_name<79, wrap(&f79)>(), get_field_name<80, wrap(&f80)>(), + get_field_name<81, wrap(&f81)>(), get_field_name<82, wrap(&f82)>(), + get_field_name<83, wrap(&f83)>(), get_field_name<84, wrap(&f84)>(), + get_field_name<85, wrap(&f85)>(), get_field_name<86, wrap(&f86)>(), + get_field_name<87, wrap(&f87)>(), get_field_name<88, wrap(&f88)>(), + get_field_name<89, wrap(&f89)>(), get_field_name<90, wrap(&f90)>(), + get_field_name<91, wrap(&f91)>(), get_field_name<92, wrap(&f92)>(), + get_field_name<93, wrap(&f93)>(), get_field_name<94, wrap(&f94)>(), + get_field_name<95, wrap(&f95)>(), get_field_name<96, wrap(&f96)>(), + get_field_name<97, wrap(&f97)>(), get_field_name<98, wrap(&f98)>(), + get_field_name<99, wrap(&f99)>(), get_field_name<100, wrap(&f100)>()); + } +} + +} // namespace internal +} // namespace rfl + +#endif diff --git a/include/rfl/internal/get_struct_name.hpp b/include/rfl/internal/get_struct_name.hpp new file mode 100644 index 00000000..64c7d0bb --- /dev/null +++ b/include/rfl/internal/get_struct_name.hpp @@ -0,0 +1,41 @@ +#ifndef RFL_INTERNAL_GETSTRUCTNAME_HPP_ +#define RFL_INTERNAL_GETSTRUCTNAME_HPP_ + +#include +#include +#include + +namespace rfl { +namespace internal { + +std::string remove_namespaces(const std::string& _name) { + const size_t pos = _name.find_last_of(":"); + if (pos == std::string::npos) { + return _name; + } + return _name.substr(pos + 1); +} + +template +std::string get_struct_name_impl() { + const std::string func_name = std::source_location::current().function_name(); + const size_t begin = func_name.find("T = ") + 4; + if (begin == std::string::npos) { + return "AnonymousStruct"; + } + const size_t end = func_name.find_first_of("])};", begin); + if (end == std::string::npos) { + return "AnonymousStruct"; + } + return remove_namespaces(func_name.substr(begin, end - begin)); +} + +template +std::string get_struct_name() { + return get_struct_name_impl>>(); +} + +} // namespace internal +} // namespace rfl + +#endif diff --git a/include/rfl/internal/has_tag_v.hpp b/include/rfl/internal/has_tag_v.hpp new file mode 100644 index 00000000..29d20f5d --- /dev/null +++ b/include/rfl/internal/has_tag_v.hpp @@ -0,0 +1,31 @@ +#ifndef RFL_HASTAGV_HPP_ +#define RFL_HASTAGV_HPP_ + +#include +#include + +namespace rfl { +namespace internal { + +template +class HasTag { + private: + template + static std::int64_t foo(...); + + template + static std::int32_t foo(typename U::Tag*); + + public: + static constexpr bool value = + sizeof(foo(nullptr)) == sizeof(std::int32_t); +}; + +/// Used for tagged unions - determines whether a struct as a Tag. +template +constexpr bool has_tag_v = HasTag::value; + +} // namespace internal +} // namespace rfl + +#endif diff --git a/include/rfl/internal/is_rename.hpp b/include/rfl/internal/is_rename.hpp new file mode 100644 index 00000000..6b87aaae --- /dev/null +++ b/include/rfl/internal/is_rename.hpp @@ -0,0 +1,35 @@ +#ifndef RFL_INTERNAL_ISRENAME_HPP_ +#define RFL_INTERNAL_ISRENAME_HPP_ + +#include +#include +#include + +#include "rfl/Rename.hpp" +#include "rfl/internal/StringLiteral.hpp" + +namespace rfl { +namespace internal { + +template +class is_rename; + +template +class is_rename : public std::false_type {}; + +template +class is_rename> : public std::true_type {}; + +template +class is_rename*> : public std::true_type {}; + +template +class is_rename*> : public std::true_type {}; + +template +constexpr bool is_rename_v = is_rename::value; + +} // namespace internal +} // namespace rfl + +#endif diff --git a/include/rfl/internal/to_ptr_field_tuple.hpp b/include/rfl/internal/to_ptr_field_tuple.hpp index bb2773db..d64241a8 100644 --- a/include/rfl/internal/to_ptr_field_tuple.hpp +++ b/include/rfl/internal/to_ptr_field_tuple.hpp @@ -38,2372 +38,2294 @@ with open("generated_code3.cpp", "w", encoding="utf-8") as codefile: template auto to_ptr_field_tuple(const T& _t) { - if constexpr (is_named_tuple_v) { - return nt_to_ptr_named_tuple(_t).fields(); - } else if constexpr (has_n_fields) { - return std::make_tuple(); - } else if constexpr (has_n_fields) { - auto& [f1] = _t; - return std::make_tuple(to_ptr_field(f1)); - } else if constexpr (has_n_fields) { - auto& [f1, f2] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3), to_ptr_field(f4)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3), to_ptr_field(f4), - to_ptr_field(f5)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3), to_ptr_field(f4), - to_ptr_field(f5), to_ptr_field(f6)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3), to_ptr_field(f4), - to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3), to_ptr_field(f4), - to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10] = _t; - return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), - to_ptr_field(f3), to_ptr_field(f4), - to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), - to_ptr_field(f9), to_ptr_field(f10)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14] = - _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, - f15] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, - f28] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, - f41] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, - f54] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, - f67] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, - f80] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, - f93] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94, f95] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94), to_ptr_field(f95)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94, f95, f96] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94), to_ptr_field(f95), to_ptr_field(f96)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94, f95, f96, f97] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94), to_ptr_field(f95), to_ptr_field(f96), - to_ptr_field(f97)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94, f95, f96, f97, f98] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94), to_ptr_field(f95), to_ptr_field(f96), - to_ptr_field(f97), to_ptr_field(f98)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94, f95, f96, f97, f98, f99] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94), to_ptr_field(f95), to_ptr_field(f96), - to_ptr_field(f97), to_ptr_field(f98), to_ptr_field(f99)); - } else if constexpr (has_n_fields) { - auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, - f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, - f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, - f42, f43, f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, - f55, f56, f57, f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, - f68, f69, f70, f71, f72, f73, f74, f75, f76, f77, f78, f79, f80, - f81, f82, f83, f84, f85, f86, f87, f88, f89, f90, f91, f92, f93, - f94, f95, f96, f97, f98, f99, f100] = _t; - return std::make_tuple( - to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), - to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), - to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), - to_ptr_field(f10), to_ptr_field(f11), to_ptr_field(f12), - to_ptr_field(f13), to_ptr_field(f14), to_ptr_field(f15), - to_ptr_field(f16), to_ptr_field(f17), to_ptr_field(f18), - to_ptr_field(f19), to_ptr_field(f20), to_ptr_field(f21), - to_ptr_field(f22), to_ptr_field(f23), to_ptr_field(f24), - to_ptr_field(f25), to_ptr_field(f26), to_ptr_field(f27), - to_ptr_field(f28), to_ptr_field(f29), to_ptr_field(f30), - to_ptr_field(f31), to_ptr_field(f32), to_ptr_field(f33), - to_ptr_field(f34), to_ptr_field(f35), to_ptr_field(f36), - to_ptr_field(f37), to_ptr_field(f38), to_ptr_field(f39), - to_ptr_field(f40), to_ptr_field(f41), to_ptr_field(f42), - to_ptr_field(f43), to_ptr_field(f44), to_ptr_field(f45), - to_ptr_field(f46), to_ptr_field(f47), to_ptr_field(f48), - to_ptr_field(f49), to_ptr_field(f50), to_ptr_field(f51), - to_ptr_field(f52), to_ptr_field(f53), to_ptr_field(f54), - to_ptr_field(f55), to_ptr_field(f56), to_ptr_field(f57), - to_ptr_field(f58), to_ptr_field(f59), to_ptr_field(f60), - to_ptr_field(f61), to_ptr_field(f62), to_ptr_field(f63), - to_ptr_field(f64), to_ptr_field(f65), to_ptr_field(f66), - to_ptr_field(f67), to_ptr_field(f68), to_ptr_field(f69), - to_ptr_field(f70), to_ptr_field(f71), to_ptr_field(f72), - to_ptr_field(f73), to_ptr_field(f74), to_ptr_field(f75), - to_ptr_field(f76), to_ptr_field(f77), to_ptr_field(f78), - to_ptr_field(f79), to_ptr_field(f80), to_ptr_field(f81), - to_ptr_field(f82), to_ptr_field(f83), to_ptr_field(f84), - to_ptr_field(f85), to_ptr_field(f86), to_ptr_field(f87), - to_ptr_field(f88), to_ptr_field(f89), to_ptr_field(f90), - to_ptr_field(f91), to_ptr_field(f92), to_ptr_field(f93), - to_ptr_field(f94), to_ptr_field(f95), to_ptr_field(f96), - to_ptr_field(f97), to_ptr_field(f98), to_ptr_field(f99), - to_ptr_field(f100)); + if constexpr (std::is_pointer_v>) { + return to_ptr_field_tuple(*_t); + } else if constexpr (is_named_tuple_v) { + return nt_to_ptr_named_tuple(_t).fields(); + } else if constexpr (has_n_fields) { + return std::make_tuple(); + } else if constexpr (has_n_fields) { + auto& [f1] = _t; + return std::make_tuple(to_ptr_field(f1)); + } else if constexpr (has_n_fields) { + auto& [f1, f2] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), + to_ptr_field(f3)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), + to_ptr_field(f6)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), + to_ptr_field(f10)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), + to_ptr_field(f10), to_ptr_field(f11)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), + to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13] = _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), + to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15] = + _t; + return std::make_tuple(to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), + to_ptr_field(f4), to_ptr_field(f5), to_ptr_field(f6), + to_ptr_field(f7), to_ptr_field(f8), to_ptr_field(f9), + to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), + to_ptr_field(f14), to_ptr_field(f15)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28] = + _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, + f29] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42] = + _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, + f43] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56] = + _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, + f57] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70] = + _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, + f71] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84] = + _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, + f85] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94), to_ptr_field(f95)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94), to_ptr_field(f95), + to_ptr_field(f96)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94), to_ptr_field(f95), + to_ptr_field(f96), to_ptr_field(f97)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97, f98] = + _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94), to_ptr_field(f95), + to_ptr_field(f96), to_ptr_field(f97), to_ptr_field(f98)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97, f98, + f99] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94), to_ptr_field(f95), + to_ptr_field(f96), to_ptr_field(f97), to_ptr_field(f98), + to_ptr_field(f99)); + } else if constexpr (has_n_fields) { + auto& [f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, + f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, + f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42, f43, + f44, f45, f46, f47, f48, f49, f50, f51, f52, f53, f54, f55, f56, f57, + f58, f59, f60, f61, f62, f63, f64, f65, f66, f67, f68, f69, f70, f71, + f72, f73, f74, f75, f76, f77, f78, f79, f80, f81, f82, f83, f84, f85, + f86, f87, f88, f89, f90, f91, f92, f93, f94, f95, f96, f97, f98, f99, + f100] = _t; + return std::make_tuple( + to_ptr_field(f1), to_ptr_field(f2), to_ptr_field(f3), to_ptr_field(f4), + to_ptr_field(f5), to_ptr_field(f6), to_ptr_field(f7), to_ptr_field(f8), + to_ptr_field(f9), to_ptr_field(f10), to_ptr_field(f11), + to_ptr_field(f12), to_ptr_field(f13), to_ptr_field(f14), + to_ptr_field(f15), to_ptr_field(f16), to_ptr_field(f17), + to_ptr_field(f18), to_ptr_field(f19), to_ptr_field(f20), + to_ptr_field(f21), to_ptr_field(f22), to_ptr_field(f23), + to_ptr_field(f24), to_ptr_field(f25), to_ptr_field(f26), + to_ptr_field(f27), to_ptr_field(f28), to_ptr_field(f29), + to_ptr_field(f30), to_ptr_field(f31), to_ptr_field(f32), + to_ptr_field(f33), to_ptr_field(f34), to_ptr_field(f35), + to_ptr_field(f36), to_ptr_field(f37), to_ptr_field(f38), + to_ptr_field(f39), to_ptr_field(f40), to_ptr_field(f41), + to_ptr_field(f42), to_ptr_field(f43), to_ptr_field(f44), + to_ptr_field(f45), to_ptr_field(f46), to_ptr_field(f47), + to_ptr_field(f48), to_ptr_field(f49), to_ptr_field(f50), + to_ptr_field(f51), to_ptr_field(f52), to_ptr_field(f53), + to_ptr_field(f54), to_ptr_field(f55), to_ptr_field(f56), + to_ptr_field(f57), to_ptr_field(f58), to_ptr_field(f59), + to_ptr_field(f60), to_ptr_field(f61), to_ptr_field(f62), + to_ptr_field(f63), to_ptr_field(f64), to_ptr_field(f65), + to_ptr_field(f66), to_ptr_field(f67), to_ptr_field(f68), + to_ptr_field(f69), to_ptr_field(f70), to_ptr_field(f71), + to_ptr_field(f72), to_ptr_field(f73), to_ptr_field(f74), + to_ptr_field(f75), to_ptr_field(f76), to_ptr_field(f77), + to_ptr_field(f78), to_ptr_field(f79), to_ptr_field(f80), + to_ptr_field(f81), to_ptr_field(f82), to_ptr_field(f83), + to_ptr_field(f84), to_ptr_field(f85), to_ptr_field(f86), + to_ptr_field(f87), to_ptr_field(f88), to_ptr_field(f89), + to_ptr_field(f90), to_ptr_field(f91), to_ptr_field(f92), + to_ptr_field(f93), to_ptr_field(f94), to_ptr_field(f95), + to_ptr_field(f96), to_ptr_field(f97), to_ptr_field(f98), + to_ptr_field(f99), to_ptr_field(f100)); - // --------------------------------- - // End of generated boilerplate code - // --------------------------------- - } else { - static_assert( - rfl::always_false_v, - "\n\nThis error occurs for one of two reasons:\n\n" - "1) You have created a struct with more than 100 fields, which is " - "unsupported. Please split up your struct into several " - "smaller structs and then use rfl::Flatten<...> to combine them. " - "Refer " - "to the documentation on rfl::Flatten<...> for details.\n\n" - "2) You have added a custom constructor to your struct, which you " - "shouldn't do either. Please refer to the sections on custom " - "classes or custom parsers in the documentation " - "for solutions to this problem.\n\n"); - } + // --------------------------------- + // End of generated boilerplate code + // --------------------------------- + } else { + static_assert( + rfl::always_false_v, + "\n\nThis error occurs for one of two reasons:\n\n" + "1) You have created a struct with more than 100 fields, which is " + "unsupported. Please split up your struct into several " + "smaller structs and then use rfl::Flatten<...> to combine them. " + "Refer " + "to the documentation on rfl::Flatten<...> for details.\n\n" + "2) You have added a custom constructor to your struct, which you " + "shouldn't do either. Please refer to the sections on custom " + "classes or custom parsers in the documentation " + "for solutions to this problem.\n\n"); + } } } // namespace internal diff --git a/include/rfl/internal/to_ptr_named_tuple.hpp b/include/rfl/internal/to_ptr_named_tuple.hpp index a6fb6d6f..28a3cc5c 100644 --- a/include/rfl/internal/to_ptr_named_tuple.hpp +++ b/include/rfl/internal/to_ptr_named_tuple.hpp @@ -16,47 +16,49 @@ namespace internal { template auto flatten_ptr_field_tuple(const PtrFieldTuple& _t, Args&&... _args) { - constexpr auto i = sizeof...(Args); - if constexpr (i == std::tuple_size_v>) { - return std::tuple_cat(std::forward(_args)...); + constexpr auto i = sizeof...(Args); + if constexpr (i == std::tuple_size_v>) { + return std::tuple_cat(std::forward(_args)...); + } else { + using T = std::tuple_element_t>; + if constexpr (internal::is_flatten_field::value) { + const auto subtuple = + internal::to_ptr_field_tuple(*std::get(_t).get()); + return flatten_ptr_field_tuple(_t, std::forward(_args)..., + flatten_ptr_field_tuple(subtuple)); } else { - using T = std::tuple_element_t>; - if constexpr (internal::is_flatten_field::value) { - const auto subtuple = - internal::to_ptr_field_tuple(*std::get(_t).get()); - return flatten_ptr_field_tuple(_t, std::forward(_args)..., - flatten_ptr_field_tuple(subtuple)); - } else { - return flatten_ptr_field_tuple(_t, std::forward(_args)..., - std::make_tuple(std::get(_t))); - } + return flatten_ptr_field_tuple(_t, std::forward(_args)..., + std::make_tuple(std::get(_t))); } + } } template auto field_tuple_to_named_tuple(const PtrFieldTuple& _ptr_field_tuple) { - const auto ft_to_nt = [](const Fields&... _fields) { - return make_named_tuple(_fields...); - }; + const auto ft_to_nt = [](const Fields&... _fields) { + return make_named_tuple(_fields...); + }; - if constexpr (!has_flatten_fields>()) { - return std::apply(ft_to_nt, std::move(_ptr_field_tuple)); - } else { - const auto flattened_tuple = flatten_ptr_field_tuple(_ptr_field_tuple); - return std::apply(ft_to_nt, flattened_tuple); - } + if constexpr (!has_flatten_fields>()) { + return std::apply(ft_to_nt, std::move(_ptr_field_tuple)); + } else { + const auto flattened_tuple = flatten_ptr_field_tuple(_ptr_field_tuple); + return std::apply(ft_to_nt, flattened_tuple); + } } /// Generates a named tuple that contains pointers to the original values in /// the struct. template auto to_ptr_named_tuple(const T& _t) { - if constexpr (is_named_tuple_v>) { - return nt_to_ptr_named_tuple(_t); - } else { - const auto ptr_field_tuple = to_ptr_field_tuple(_t); - return field_tuple_to_named_tuple(ptr_field_tuple); - } + if constexpr (std::is_pointer_v>) { + return to_ptr_named_tuple(*_t); + } else if constexpr (is_named_tuple_v>) { + return nt_to_ptr_named_tuple(_t); + } else { + const auto ptr_field_tuple = to_ptr_field_tuple(_t); + return field_tuple_to_named_tuple(ptr_field_tuple); + } } } // namespace internal diff --git a/include/rfl/internal/to_ptr_tuple.hpp b/include/rfl/internal/to_ptr_tuple.hpp index eb792d3e..72a55b99 100644 --- a/include/rfl/internal/to_ptr_tuple.hpp +++ b/include/rfl/internal/to_ptr_tuple.hpp @@ -38,7 +38,9 @@ with open("generated_code4.cpp", "w", encoding="utf-8") as codefile: template auto to_ptr_tuple(const T& _t) { - if constexpr (has_n_fields) { + if constexpr (std::is_pointer_v>) { + return to_ptr_tuple(*_t); + } else if constexpr (has_n_fields) { return std::make_tuple(); } else if constexpr (has_n_fields) { auto& [f1] = _t; diff --git a/include/rfl/json/Writer.hpp b/include/rfl/json/Writer.hpp index f628b5d2..61d86b4f 100644 --- a/include/rfl/json/Writer.hpp +++ b/include/rfl/json/Writer.hpp @@ -19,77 +19,76 @@ namespace rfl { namespace json { struct Writer { - struct YYJSONOutputArray { - YYJSONOutputArray(yyjson_mut_val* _val) : val_(_val) {} - yyjson_mut_val* val_; - }; + struct YYJSONOutputArray { + YYJSONOutputArray(yyjson_mut_val* _val) : val_(_val) {} + yyjson_mut_val* val_; + }; - struct YYJSONOutputObject { - YYJSONOutputObject(yyjson_mut_val* _val) : val_(_val) {} - yyjson_mut_val* val_; - }; + struct YYJSONOutputObject { + YYJSONOutputObject(yyjson_mut_val* _val) : val_(_val) {} + yyjson_mut_val* val_; + }; - struct YYJSONOutputVar { - YYJSONOutputVar(yyjson_mut_val* _val) : val_(_val) {} + struct YYJSONOutputVar { + YYJSONOutputVar(yyjson_mut_val* _val) : val_(_val) {} - YYJSONOutputVar(YYJSONOutputArray _arr) : val_(_arr.val_) {} + YYJSONOutputVar(YYJSONOutputArray _arr) : val_(_arr.val_) {} - YYJSONOutputVar(YYJSONOutputObject _obj) : val_(_obj.val_) {} + YYJSONOutputVar(YYJSONOutputObject _obj) : val_(_obj.val_) {} - yyjson_mut_val* val_; - }; + yyjson_mut_val* val_; + }; - using OutputArrayType = YYJSONOutputArray; - using OutputObjectType = YYJSONOutputObject; - using OutputVarType = YYJSONOutputVar; + using OutputArrayType = YYJSONOutputArray; + using OutputObjectType = YYJSONOutputObject; + using OutputVarType = YYJSONOutputVar; - Writer(yyjson_mut_doc* _doc) : doc_(_doc) {} + Writer(yyjson_mut_doc* _doc) : doc_(_doc) {} - ~Writer() = default; + ~Writer() = default; - void add(const OutputVarType _var, OutputArrayType* _arr) const noexcept { - yyjson_mut_arr_add_val(_arr->val_, _var.val_); + void add(const OutputVarType _var, OutputArrayType* _arr) const noexcept { + yyjson_mut_arr_add_val(_arr->val_, _var.val_); + } + + OutputVarType empty_var() const noexcept { + return OutputVarType(yyjson_mut_null(doc_)); + } + + template + OutputVarType from_basic_type(const T& _var) const noexcept { + if constexpr (std::is_same, std::string>()) { + return OutputVarType(yyjson_mut_strcpy(doc_, _var.c_str())); + } else if constexpr (std::is_same, bool>()) { + return OutputVarType(yyjson_mut_bool(doc_, _var)); + } else if constexpr (std::is_floating_point>()) { + return OutputVarType(yyjson_mut_real(doc_, static_cast(_var))); + } else if constexpr (std::is_integral>()) { + return OutputVarType(yyjson_mut_int(doc_, static_cast(_var))); + } else { + static_assert(rfl::always_false_v, "Unsupported type."); } + } - OutputVarType empty_var() const noexcept { - return OutputVarType(yyjson_mut_null(doc_)); - } + OutputArrayType new_array() const noexcept { + return OutputArrayType(yyjson_mut_arr(doc_)); + } - template - OutputVarType from_basic_type(const T& _var) const noexcept { - if constexpr (std::is_same, std::string>()) { - return OutputVarType(yyjson_mut_strcpy(doc_, _var.c_str())); - } else if constexpr (std::is_same, bool>()) { - return OutputVarType(yyjson_mut_bool(doc_, _var)); - } else if constexpr (std::is_floating_point>()) { - return OutputVarType( - yyjson_mut_real(doc_, static_cast(_var))); - } else if constexpr (std::is_integral>()) { - return OutputVarType(yyjson_mut_int(doc_, static_cast(_var))); - } else { - static_assert(rfl::always_false_v, "Unsupported type."); - } - } + OutputObjectType new_object() const noexcept { + return OutputObjectType(yyjson_mut_obj(doc_)); + } - OutputArrayType new_array() const noexcept { - return OutputArrayType(yyjson_mut_arr(doc_)); - } + bool is_empty(const OutputVarType& _var) const noexcept { + return yyjson_mut_is_null(_var.val_); + } - OutputObjectType new_object() const noexcept { - return OutputObjectType(yyjson_mut_obj(doc_)); - } + void set_field(const std::string& _name, const OutputVarType& _var, + OutputObjectType* _obj) const noexcept { + yyjson_mut_obj_add(_obj->val_, yyjson_mut_strcpy(doc_, _name.c_str()), + _var.val_); + } - bool is_empty(const OutputVarType& _var) const noexcept { - return yyjson_mut_is_null(_var.val_); - } - - void set_field(const std::string& _name, const OutputVarType& _var, - OutputObjectType* _obj) const noexcept { - yyjson_mut_obj_add(_obj->val_, yyjson_mut_strcpy(doc_, _name.c_str()), - _var.val_); - } - - yyjson_mut_doc* doc_; + yyjson_mut_doc* doc_; }; } // namespace json diff --git a/include/rfl/parsing/Parser.hpp b/include/rfl/parsing/Parser.hpp index 4d99f7ce..5c82785f 100644 --- a/include/rfl/parsing/Parser.hpp +++ b/include/rfl/parsing/Parser.hpp @@ -1,6 +1,8 @@ #ifndef RFL_PARSING_PARSER_HPP_ #define RFL_PARSING_PARSER_HPP_ +#include + #include #include #include @@ -29,13 +31,18 @@ #include "rfl/always_false.hpp" #include "rfl/field_type.hpp" #include "rfl/from_named_tuple.hpp" +#include "rfl/internal/Fields.hpp" #include "rfl/internal/Memoization.hpp" #include "rfl/internal/StringLiteral.hpp" #include "rfl/internal/all_fields.hpp" +#include "rfl/internal/flattened_ptr_tuple_t.hpp" #include "rfl/internal/flattened_tuple_t.hpp" +#include "rfl/internal/get_field_names.hpp" +#include "rfl/internal/get_struct_name.hpp" #include "rfl/internal/has_fields.hpp" #include "rfl/internal/has_reflection_method_v.hpp" #include "rfl/internal/has_reflection_type_v.hpp" +#include "rfl/internal/has_tag_v.hpp" #include "rfl/internal/is_basic_type.hpp" #include "rfl/internal/move_from_tuple.hpp" #include "rfl/internal/no_duplicate_field_names.hpp" @@ -44,6 +51,7 @@ #include "rfl/internal/tuple_t.hpp" #include "rfl/named_tuple_t.hpp" #include "rfl/parsing/AreReaderAndWriter.hpp" +#include "rfl/parsing/TaggedUnionWrapper.hpp" #include "rfl/parsing/is_forward_list.hpp" #include "rfl/parsing/is_map_like.hpp" #include "rfl/parsing/is_map_like_not_multimap.hpp" @@ -62,6 +70,219 @@ struct Parser; // ---------------------------------------------------------------------------- +/// Used for any structs that are aggregates. +template +struct StructParser { + using InputObjectType = typename R::InputObjectType; + using InputVarType = typename R::InputVarType; + + using OutputObjectType = typename W::OutputObjectType; + using OutputVarType = typename W::OutputVarType; + + using PtrTupleType = internal::flattened_ptr_tuple_t; + using TupleType = internal::flattened_tuple_t; + + static constexpr auto tuple_size = std::tuple_size_v; + + public: + /// Generates a NamedTuple from a JSON Object. + static Result read(const R& _r, const InputVarType& _var) noexcept { + const auto& indices = field_indices(); + + const auto fct = [&](const std::string_view& _str) -> std::int16_t { + const auto it = indices.find(_str); + return it != indices.end() ? it->second : static_cast(-1); + }; + + const auto to_fields_array = [&](auto _obj) { + return _r.template to_fields_array(fct, _obj); + }; + + const auto build_tuple = [&](auto _fields_vec) -> Result { + return build_tuple_recursively(_r, _fields_vec); + }; + + const auto to_struct = [](TupleType&& _t) -> T { + return internal::move_from_tuple(std::move(_t)); + }; + + return _r.to_object(_var) + .transform(to_fields_array) + .and_then(build_tuple) + .transform(to_struct); + } + + /// Transforms a NamedTuple into a JSON object. + static OutputVarType write(const W& _w, const T& _var) noexcept { + const auto ptr_tuple = internal::to_flattened_ptr_tuple(_var); + + auto obj = _w.new_object(); + + build_object_recursively(_w, ptr_tuple, &obj); + + return OutputVarType(obj); + } + + private: + /// Builds the tuple field by field containing the values for the structs + /// recursively. + template + static Result build_tuple_recursively( + const R& _r, + const std::array, tuple_size>& _fields_arr, + Args&&... _args) noexcept { + constexpr auto i = sizeof...(Args); + + if constexpr (i == std::tuple_size_v) { + return std::make_tuple(std::move(_args)...); + } else { + using ValueType = + std::decay_t::type>; + + const auto& f = std::get(_fields_arr); + + const auto key = std::get(field_names()); + + if (!f) { + if constexpr (is_required()) { + return collect_errors( + _r, _fields_arr, + std::vector( + {Error("Field named '" + key + "' not found!")})); + } else { + return build_tuple_recursively(_r, _fields_arr, std::move(_args)..., + ValueType()); + } + } + + const auto handle_error = [&](Error&& _error) { + return collect_errors(_r, _fields_arr, + std::vector({std::move(_error)})); + }; + + const auto build_tuple = [&](auto&& _value) { + return build_tuple_recursively(_r, _fields_arr, std::move(_args)..., + std::move(_value)); + }; + + return get_value(_r, *f, key) + .or_else(handle_error) + .and_then(build_tuple); + } + } + + /// If something went wrong, we want to collect all of the errors - it's + /// just good UX. + template + static Error collect_errors( + const R& _r, + const std::array, tuple_size>& _fields_arr, + std::vector _errors) noexcept { + if constexpr (_i == tuple_size) { + if (_errors.size() == 1) { + return std::move(_errors[0]); + } else { + std::string msg = + "Found " + std::to_string(_errors.size()) + " errors:"; + for (size_t i = 0; i < _errors.size(); ++i) { + msg += "\n" + std::to_string(i + 1) + ") " + _errors.at(i).what(); + } + return Error(msg); + } + } else { + using ValueType = + std::decay_t::type>; + + const auto& f = std::get<_i>(_fields_arr); + + const auto key = std::get<_i>(field_names()); + + if (!f) { + if constexpr (is_required()) { + _errors.emplace_back(Error("Field named '" + key + "' not found.")); + } + return collect_errors<_i + 1>(_r, _fields_arr, std::move(_errors)); + } + + const auto add_error_if_applicable = + [&](Error&& _error) -> Result { + _errors.emplace_back(std::move(_error)); + return _error; + }; + + get_value(_r, *f, key).or_else(add_error_if_applicable); + + return collect_errors<_i + 1>(_r, _fields_arr, std::move(_errors)); + } + } + + /// Builds the object field by field. + template + static void build_object_recursively(const W& _w, const PtrTupleType& _tup, + OutputObjectType* _ptr) noexcept { + if constexpr (_i >= tuple_size) { + return; + } else { + using ValueType = + std::decay_t::type>; + + auto value = Parser::write(_w, std::get<_i>(_tup)); + + const auto& key = std::get<_i>(field_names()); + + if constexpr (!is_required()) { + if (!_w.is_empty(value)) { + _w.set_field(key, value, _ptr); + } + } else { + _w.set_field(key, value, _ptr); + } + + return build_object_recursively<_i + 1>(_w, _tup, _ptr); + } + } + + /// Uses a memoization pattern to retrieve the field indices. + /// There are some objects that we are likely to parse many times, + /// so we only calculate these indices once. + static const auto& field_indices() noexcept { + return fields_.value(make_fields).indices_; + } + + /// Uses a memoization pattern to retrieve the field names. + /// There are some objects that we are likely to parse many times, + /// so we only calculate these indices once. + static const auto& field_names() noexcept { + return fields_.value(make_fields).names_; + } + + /// Retrieves the value from the object. This is mainly needed to + /// generate a better error message. + template + static auto get_value(const R& _r, const InputVarType _var, + const std::string& _key) noexcept { + const auto embellish_error = [&](const Error& _e) { + return Error("Failed to parse field '" + _key + "': " + _e.what()); + }; + return Parser::read(_r, _var).or_else(embellish_error); + } + + /// Builds the object field by field. + static void make_fields(internal::Fields* _fields) noexcept { + _fields->names_ = internal::get_field_names(); + for (size_t i = 0; i < tuple_size; ++i) { + _fields->indices_[_fields->names_[i]] = static_cast(i); + } + } + + private: + /// Maps each of the field names to an index signifying their order and + /// vice-versa. + static inline internal::Memoization> fields_; +}; + +// ---------------------------------------------------------------------------- + /// Default case - anything that cannot be explicitly matched. template requires AreReaderAndWriter @@ -97,11 +318,7 @@ struct Parser { return Parser::read(_r, _var).and_then( to_struct); } else { - using TupleType = internal::flattened_tuple_t; - const auto to_struct = [](TupleType&& _t) -> T { - return internal::move_from_tuple(std::move(_t)); - }; - return Parser::read(_r, _var).transform(to_struct); + return StructParser::read(_r, _var); } } else if constexpr (internal::is_basic_type_v) { return _r.template to_basic_type>(_var); @@ -131,9 +348,7 @@ struct Parser { using PtrNamedTupleType = std::decay_t; return Parser::write(_w, ptr_named_tuple); } else { - const auto ptr_tuple = internal::to_flattened_ptr_tuple(_var); - using PtrTupleType = std::decay_t; - return Parser::write(_w, ptr_tuple); + return StructParser::write(_w, _var); } } else if constexpr (internal::is_basic_type_v) { return _w.from_basic_type(_var); @@ -633,6 +848,28 @@ struct Parser> { // ---------------------------------------------------------------------------- +template +requires AreReaderAndWriter> +struct Parser> { + using InputVarType = typename R::InputVarType; + using OutputVarType = typename W::OutputVarType; + + static Result> read(const R& _r, + const InputVarType& _var) noexcept { + const auto to_rename = [](auto&& _t) { + return Rename<_name, T>(std::move(_t)); + }; + return Parser>::read(_r, _var).transform(to_rename); + } + + static OutputVarType write(const W& _w, + const Rename<_name, T>& _rename) noexcept { + return Parser>::write(_w, _rename.value()); + } +}; + +// ---------------------------------------------------------------------------- + template requires AreReaderAndWriter> struct Parser> { @@ -768,9 +1005,10 @@ struct Parser> { static OutputVarType write( const W& _w, const TaggedUnion<_discriminator, AlternativeTypes...>& _tagged_union) noexcept { - using VariantType = - typename TaggedUnion<_discriminator, AlternativeTypes...>::VariantType; - return Parser::write(_w, _tagged_union.variant_); + const auto handle = [&](const auto& _val) -> OutputVarType { + return write_wrapped(_w, _val); + }; + return std::visit(handle, _tagged_union.variant_); } private: @@ -831,13 +1069,44 @@ struct Parser> { template static inline bool contains_disc_value( const std::string& _disc_value) noexcept { - if constexpr (!internal::has_reflection_type_v) { - using LiteralType = field_type_t<_discriminator, T>; + if constexpr (internal::has_reflection_type_v) { + return contains_disc_value(_disc_value); + } else if constexpr (internal::has_tag_v) { + using LiteralType = typename T::Tag; + return LiteralType::contains(_disc_value); return LiteralType::contains(_disc_value); } else { - using LiteralType = - field_type_t<_discriminator, typename T::ReflectionType>; - return LiteralType::contains(_disc_value); + return _disc_value == internal::get_struct_name(); + } + } + + template + static inline std::string make_tag() noexcept { + if constexpr (internal::has_reflection_type_v) { + return make_tag(); + } else if constexpr (internal::has_tag_v) { + using LiteralType = typename T::Tag; + return LiteralType::template name_of<0>().str(); + } else { + return internal::get_struct_name(); + } + } + + /// Writes a wrapped version of the original object, which contains the tag. + template + static OutputVarType write_wrapped(const W& _w, const T& _val) noexcept { + const auto tag = make_tag(); + using TagType = std::decay_t; + if constexpr (internal::has_fields>()) { + using WrapperType = + TaggedUnionWrapperWithFields; + const auto wrapper = WrapperType{.tag = tag, .fields = &_val}; + return Parser::write(_w, wrapper); + } else { + using WrapperType = + TaggedUnionWrapperNoFields; + const auto wrapper = WrapperType{.tag = tag, .fields = &_val}; + return Parser::write(_w, wrapper); } } }; diff --git a/include/rfl/parsing/TaggedUnionWrapper.hpp b/include/rfl/parsing/TaggedUnionWrapper.hpp new file mode 100644 index 00000000..064ef107 --- /dev/null +++ b/include/rfl/parsing/TaggedUnionWrapper.hpp @@ -0,0 +1,28 @@ +#ifndef RFL_PARSING_TAGGEDUNIONWRAPPER_HPP_ +#define RFL_PARSING_TAGGEDUNIONWRAPPER_HPP_ + +#include + +#include "rfl/Flatten.hpp" +#include "rfl/Rename.hpp" +#include "rfl/internal/StringLiteral.hpp" + +namespace rfl { +namespace parsing { + +template +struct TaggedUnionWrapperNoFields { + rfl::Rename<_discriminator, std::string> tag; + rfl::Flatten fields; +}; + +template +struct TaggedUnionWrapperWithFields { + rfl::Field<_discriminator, std::string> tag; + rfl::Flatten fields; +}; + +} // namespace parsing +} // namespace rfl + +#endif diff --git a/tests/flexbuffers/test_all_of.hpp b/tests/flexbuffers/test_all_of.hpp index b568c6d0..45049094 100644 --- a/tests/flexbuffers/test_all_of.hpp +++ b/tests/flexbuffers/test_all_of.hpp @@ -1,13 +1,16 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_all_of() { - std::cout << "test_all_of" << std::endl; +namespace test_all_of { + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; using Age = rfl::Validator, rfl::Maximum<130>>>; @@ -23,3 +26,4 @@ void test_all_of() { write_and_read(homer); } +} // namespace test_all_of diff --git a/tests/flexbuffers/test_anonymous_fields.hpp b/tests/flexbuffers/test_anonymous_fields.hpp index 0b1e229f..5f6a9cad 100644 --- a/tests/flexbuffers/test_anonymous_fields.hpp +++ b/tests/flexbuffers/test_anonymous_fields.hpp @@ -1,25 +1,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_anonymous_fields() { - std::cout << "test_anonymous_fields" << std::endl; +namespace test_anonymous_fields { - using Age = rfl::Validator, rfl::Maximum<130>>>; +using Age = rfl::Validator, rfl::Maximum<130>>>; - struct Person { - std::string first_name; - std::string last_name; - rfl::Timestamp<"%Y-%m-%d"> birthday; - Age age; - rfl::Email email; - std::vector children; - }; +struct Person { + std::string first_name; + std::string last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; + Age age; + rfl::Email email; + std::vector children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart", .last_name = "Simpson", @@ -49,3 +52,4 @@ void test_anonymous_fields() { write_and_read(homer); } +} // namespace test_anonymous_fields diff --git a/tests/flexbuffers/test_box.hpp b/tests/flexbuffers/test_box.hpp index 2de1b372..a886056b 100644 --- a/tests/flexbuffers/test_box.hpp +++ b/tests/flexbuffers/test_box.hpp @@ -2,32 +2,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_box() { - std::cout << "test_box" << std::endl; +namespace test_box { - struct DecisionTree { - struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; - }; - - struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", rfl::Box> lesser; - rfl::Field<"right", rfl::Box> greater; - }; - - using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; - - rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +struct DecisionTree { + struct Leaf { + rfl::Field<"value", double> value; }; + struct Node { + rfl::Field<"criticalValue", double> critical_value; + rfl::Field<"left", rfl::Box> lesser; + rfl::Field<"right", rfl::Box> greater; + }; + + using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; + + rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + auto leaf1 = DecisionTree::Leaf{.value = 3.0}; auto leaf2 = DecisionTree::Leaf{.value = 5.0}; @@ -41,3 +42,4 @@ void test_box() { write_and_read(tree); } +} // namespace test_box diff --git a/tests/flexbuffers/test_custom_class1.hpp b/tests/flexbuffers/test_custom_class1.hpp index 1d8425ba..cdbfc4e6 100644 --- a/tests/flexbuffers/test_custom_class1.hpp +++ b/tests/flexbuffers/test_custom_class1.hpp @@ -2,36 +2,39 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_custom_class1() { - std::cout << "test_custom_class1" << std::endl; +namespace test_custom_class1 { - struct Person { - struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::vector> children = - rfl::default_value; - }; +struct Person { + struct PersonImpl { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::vector> children = rfl::default_value; + }; - using ReflectionType = PersonImpl; + using ReflectionType = PersonImpl; - Person(const PersonImpl& _impl) : impl(_impl) {} + Person(const PersonImpl& _impl) : impl(_impl) {} - Person(const std::string& _first_name) - : impl(PersonImpl{.first_name = _first_name}) {} + Person(const std::string& _first_name) + : impl(PersonImpl{.first_name = _first_name}) {} - const ReflectionType& reflection() const { return impl; }; + const ReflectionType& reflection() const { return impl; }; - private: - PersonImpl impl; - }; + private: + PersonImpl impl; +}; - const auto bart = Person("Bart"); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read(bart); + const auto bart = Person("Bart"); + + write_and_read(bart); } +} // namespace test_custom_class1 diff --git a/tests/flexbuffers/test_custom_class2.hpp b/tests/flexbuffers/test_custom_class2.hpp index 101849f1..161900a7 100644 --- a/tests/flexbuffers/test_custom_class2.hpp +++ b/tests/flexbuffers/test_custom_class2.hpp @@ -2,12 +2,13 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -namespace tcc2 { +namespace test_custom_class2 { struct Person { Person(const std::string& _first_name, const std::string& _last_name, @@ -40,23 +41,27 @@ struct PersonImpl { Person to_class() const { return Person(first_name(), last_name(), age()); } }; -} // namespace tcc2 +} // namespace test_custom_class2 namespace rfl { namespace parsing { template -struct Parser - : public CustomParser {}; +struct Parser + : public CustomParser {}; } // namespace parsing } // namespace rfl -void test_custom_class2() { - std::cout << "test_custom_class2" << std::endl; +namespace test_custom_class2 { - const auto bart = tcc2::Person("Bart", "Simpson", 10); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + + const auto bart = test_custom_class2::Person("Bart", "Simpson", 10); write_and_read(bart); } + +} // namespace test_custom_class2 diff --git a/tests/flexbuffers/test_custom_class3.hpp b/tests/flexbuffers/test_custom_class3.hpp index 06d95c62..00d2eb5a 100644 --- a/tests/flexbuffers/test_custom_class3.hpp +++ b/tests/flexbuffers/test_custom_class3.hpp @@ -2,12 +2,13 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -namespace tcc3 { +namespace test_custom_class3 { struct Person { Person(const std::string& _first_name, @@ -40,24 +41,28 @@ struct PersonImpl { } }; -} // namespace tcc3 +} // namespace test_custom_class3 namespace rfl { namespace parsing { template -struct Parser - : public CustomParser {}; +struct Parser + : public CustomParser {}; } // namespace parsing } // namespace rfl -void test_custom_class3() { - std::cout << "test_custom_class3" << std::endl; +namespace test_custom_class3 { - const auto bart = - tcc3::Person("Bart", rfl::make_box("Simpson"), 10); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + + const auto bart = test_custom_class3::Person( + "Bart", rfl::make_box("Simpson"), 10); write_and_read(bart); } + +} // namespace test_custom_class3 diff --git a/tests/flexbuffers/test_custom_constructor.hpp b/tests/flexbuffers/test_custom_constructor.hpp index 08b36c84..dda87d79 100644 --- a/tests/flexbuffers/test_custom_constructor.hpp +++ b/tests/flexbuffers/test_custom_constructor.hpp @@ -1,36 +1,37 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that the example in the README works as expected. -// It would be embarrassing if it didn't... -void test_custom_constructor() { - std::cout << "test_custom_constructor" << std::endl; +namespace test_custom_constructor { - struct Person { - static rfl::Result from_flexbuf( - typename rfl::flexbuf::Reader::InputVarType _obj) { - /// This only exists for the purpose of the test. - const auto change_first_name = [](auto&& _person) { - return rfl::replace(std::move(_person), - rfl::Field<"firstName", std::string>("Bart")); - }; - const auto from_nt = [](auto&& _nt) { - return rfl::from_named_tuple(std::move(_nt)); - }; - return rfl::flexbuf::read>(_obj) - .transform(from_nt) - .transform(change_first_name); - } +struct Person { + static rfl::Result from_flexbuf( + typename rfl::flexbuf::Reader::InputVarType _obj) { + /// This only exists for the purpose of the test. + const auto change_first_name = [](auto&& _person) { + return rfl::replace(std::move(_person), + rfl::Field<"firstName", std::string>("Bart")); + }; + const auto from_nt = [](auto&& _nt) { + return rfl::from_named_tuple(std::move(_nt)); + }; + return rfl::flexbuf::read>(_obj) + .transform(from_nt) + .transform(change_first_name); + } - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - }; + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto person1 = Person{ .first_name = "Homer", .last_name = "Simpson", .birthday = "1987-04-19"}; @@ -53,3 +54,4 @@ void test_custom_constructor() { std::cout << "OK" << std::endl << std::endl; } } +} // namespace test_custom_constructor diff --git a/tests/flexbuffers/test_deque.hpp b/tests/flexbuffers/test_deque.hpp index ad0a3311..e18fb7c9 100644 --- a/tests/flexbuffers/test_deque.hpp +++ b/tests/flexbuffers/test_deque.hpp @@ -1,28 +1,32 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_deque() { - std::cout << "test_deque" << std::endl; +namespace test_deque { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>(); - children->emplace_back(Person{.first_name = "Bart"}); - children->emplace_back(Person{.first_name = "Lisa"}); - children->emplace_back(Person{.first_name = "Maggie"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_back(Person{.first_name = "Bart"}); + children->emplace_back(Person{.first_name = "Lisa"}); + children->emplace_back(Person{.first_name = "Maggie"}); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_deque diff --git a/tests/flexbuffers/test_field_variant.hpp b/tests/flexbuffers/test_field_variant.hpp index 3aa9d305..4cf1f508 100644 --- a/tests/flexbuffers/test_field_variant.hpp +++ b/tests/flexbuffers/test_field_variant.hpp @@ -2,33 +2,37 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_field_variant() { - std::cout << "test_field_variant" << std::endl; +namespace test_field_variant { - struct Circle { - rfl::Field<"radius", double> radius; - }; +struct Circle { + rfl::Field<"radius", double> radius; +}; - struct Rectangle { - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; - }; +struct Rectangle { + rfl::Field<"height", double> height; + rfl::Field<"width", double> width; +}; - struct Square { - rfl::Field<"width", double> width; - }; +struct Square { + rfl::Field<"width", double> width; +}; - using Shapes = rfl::Variant, - rfl::Field<"rectangle", Rectangle>, - rfl::Field<"square", rfl::Box>>; +using Shapes = rfl::Variant, + rfl::Field<"rectangle", Rectangle>, + rfl::Field<"square", rfl::Box>>; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const Shapes r = rfl::make_field<"rectangle">(Rectangle{.height = 10, .width = 5}); write_and_read(r); } +} // namespace test_field_variant diff --git a/tests/flexbuffers/test_flatten_anonymous.hpp b/tests/flexbuffers/test_flatten_anonymous.hpp index 5971adb4..656b9697 100644 --- a/tests/flexbuffers/test_flatten_anonymous.hpp +++ b/tests/flexbuffers/test_flatten_anonymous.hpp @@ -2,25 +2,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_flatten_anonymous() { - std::cout << "test_flatten_anonymous" << std::endl; +namespace test_flatten_anonymous { - struct Person { - std::string first_name; - rfl::Box last_name; - int age; - }; +struct Person { + std::string first_name; + rfl::Box last_name; + int age; +}; - struct Employee { - rfl::Flatten person; - rfl::Box employer; - float salary; - }; +struct Employee { + rfl::Flatten person; + rfl::Box employer; + float salary; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto employee = Employee{ .person = Person{.first_name = "Homer", @@ -31,3 +34,4 @@ void test_flatten_anonymous() { write_and_read(employee); } +} // namespace test_flatten_anonymous diff --git a/tests/flexbuffers/test_forward_list.hpp b/tests/flexbuffers/test_forward_list.hpp index da8da2da..833e8a30 100644 --- a/tests/flexbuffers/test_forward_list.hpp +++ b/tests/flexbuffers/test_forward_list.hpp @@ -1,28 +1,32 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_forward_list() { - std::cout << "test_forward_list" << std::endl; +namespace test_forward_list { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>(); - children->emplace_front(Person{.first_name = "Maggie"}); - children->emplace_front(Person{.first_name = "Lisa"}); - children->emplace_front(Person{.first_name = "Bart"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_front(Person{.first_name = "Maggie"}); + children->emplace_front(Person{.first_name = "Lisa"}); + children->emplace_front(Person{.first_name = "Bart"}); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_forward_list diff --git a/tests/flexbuffers/test_list.hpp b/tests/flexbuffers/test_list.hpp index 637bcd70..22f4eb60 100644 --- a/tests/flexbuffers/test_list.hpp +++ b/tests/flexbuffers/test_list.hpp @@ -1,28 +1,32 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_list() { - std::cout << "test_list" << std::endl; +namespace test_list { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>(); - children->emplace_back(Person{.first_name = "Bart"}); - children->emplace_back(Person{.first_name = "Lisa"}); - children->emplace_back(Person{.first_name = "Maggie"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_back(Person{.first_name = "Bart"}); + children->emplace_back(Person{.first_name = "Lisa"}); + children->emplace_back(Person{.first_name = "Maggie"}); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_list diff --git a/tests/flexbuffers/test_literal.hpp b/tests/flexbuffers/test_literal.hpp index 5bff332a..5ade3bfd 100644 --- a/tests/flexbuffers/test_literal.hpp +++ b/tests/flexbuffers/test_literal.hpp @@ -2,25 +2,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_literal() { - std::cout << "test_literal" << std::endl; +namespace test_literal { - using FirstName = rfl::Literal<"Homer", "Marge", "Bart", "Lisa", "Maggie">; - using LastName = rfl::Literal<"Simpson">; +using FirstName = rfl::Literal<"Homer", "Marge", "Bart", "Lisa", "Maggie">; +using LastName = rfl::Literal<"Simpson">; - struct Person { - rfl::Field<"firstName", FirstName> first_name; - rfl::Field<"lastName", LastName> last_name = rfl::default_value; - rfl::Field<"children", std::vector> children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", FirstName> first_name; + rfl::Field<"lastName", LastName> last_name = rfl::default_value; + rfl::Field<"children", std::vector> children = rfl::default_value; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = FirstName::make<"Bart">()}; write_and_read(bart); } +} // namespace test_literal diff --git a/tests/flexbuffers/test_map.hpp b/tests/flexbuffers/test_map.hpp index afba3d4e..4dcc9d6b 100644 --- a/tests/flexbuffers/test_map.hpp +++ b/tests/flexbuffers/test_map.hpp @@ -2,27 +2,31 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_map() { - std::cout << "test_map" << std::endl; +namespace test_map { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_map diff --git a/tests/flexbuffers/test_monster_example1.hpp b/tests/flexbuffers/test_monster_example1.hpp index c0449005..0a6bcb00 100644 --- a/tests/flexbuffers/test_monster_example1.hpp +++ b/tests/flexbuffers/test_monster_example1.hpp @@ -1,41 +1,44 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_monster_example1() { - std::cout << "test_monster_example1" << std::endl; +namespace test_monster_example1 { - using Color = rfl::Literal<"Red", "Green", "Blue">; +using Color = rfl::Literal<"Red", "Green", "Blue">; - struct Weapon { - std::string name; - short damage; - }; +struct Weapon { + std::string name; + short damage; +}; - using Equipment = rfl::Variant>; +using Equipment = rfl::Variant>; - struct Vec3 { - float x; - float y; - float z; - }; +struct Vec3 { + float x; + float y; + float z; +}; - struct Monster { - Vec3 pos; - short mana = 150; - short hp = 100; - std::string name; - bool friendly = false; - std::vector inventory; - Color color = Color::make<"Blue">(); - std::vector weapons; - Equipment equipped; - std::vector path; - }; +struct Monster { + Vec3 pos; + short mana = 150; + short hp = 100; + std::string name; + bool friendly = false; + std::vector inventory; + Color color = Color::make<"Blue">(); + std::vector weapons; + Equipment equipped; + std::vector path; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto sword = Weapon{.name = "Sword", .damage = 3}; const auto axe = Weapon{.name = "Axe", .damage = 5}; @@ -59,3 +62,4 @@ void test_monster_example1() { write_and_read(orc); } +} // namespace test_monster_example1 diff --git a/tests/flexbuffers/test_monster_example2.hpp b/tests/flexbuffers/test_monster_example2.hpp index 2cb79197..459bde52 100644 --- a/tests/flexbuffers/test_monster_example2.hpp +++ b/tests/flexbuffers/test_monster_example2.hpp @@ -1,41 +1,44 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_monster_example2() { - std::cout << "test_monster_example2" << std::endl; +namespace test_monster_example2 { - using Color = rfl::Literal<"Red", "Green", "Blue">; +using Color = rfl::Literal<"Red", "Green", "Blue">; - struct Weapon { - rfl::Field<"name", std::string> name; - rfl::Field<"damage", short> damage; - }; +struct Weapon { + rfl::Field<"name", std::string> name; + rfl::Field<"damage", short> damage; +}; - using Equipment = rfl::Variant>; +using Equipment = rfl::Variant>; - struct Vec3 { - rfl::Field<"x", float> x; - rfl::Field<"y", float> y; - rfl::Field<"z", float> z; - }; +struct Vec3 { + rfl::Field<"x", float> x; + rfl::Field<"y", float> y; + rfl::Field<"z", float> z; +}; - struct Monster { - rfl::Field<"pos", Vec3> pos; - rfl::Field<"mana", short> mana = 150; - rfl::Field<"hp", short> hp = 100; - rfl::Field<"name", std::string> name; - rfl::Field<"friendly", bool> friendly = false; - rfl::Field<"inventory", std::vector> inventory; - rfl::Field<"color", Color> color = Color::make<"Blue">(); - rfl::Field<"weapons", std::vector> weapons; - rfl::Field<"equipped", Equipment> equipped; - rfl::Field<"path", std::vector> path; - }; +struct Monster { + rfl::Field<"pos", Vec3> pos; + rfl::Field<"mana", short> mana = 150; + rfl::Field<"hp", short> hp = 100; + rfl::Field<"name", std::string> name; + rfl::Field<"friendly", bool> friendly = false; + rfl::Field<"inventory", std::vector> inventory; + rfl::Field<"color", Color> color = Color::make<"Blue">(); + rfl::Field<"weapons", std::vector> weapons; + rfl::Field<"equipped", Equipment> equipped; + rfl::Field<"path", std::vector> path; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto sword = Weapon{.name = "Sword", .damage = 3}; const auto axe = Weapon{.name = "Axe", .damage = 5}; @@ -59,4 +62,4 @@ void test_monster_example2() { write_and_read(orc); } - +} // namespace test_monster_example2 diff --git a/tests/flexbuffers/test_multimap.hpp b/tests/flexbuffers/test_multimap.hpp index 7b28ab84..24e7fe84 100644 --- a/tests/flexbuffers/test_multimap.hpp +++ b/tests/flexbuffers/test_multimap.hpp @@ -2,27 +2,31 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_multimap() { - std::cout << "test_multimap" << std::endl; +namespace test_multimap { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_multimap diff --git a/tests/flexbuffers/test_multiset.hpp b/tests/flexbuffers/test_multiset.hpp index 2bc3455f..38a528cf 100644 --- a/tests/flexbuffers/test_multiset.hpp +++ b/tests/flexbuffers/test_multiset.hpp @@ -1,26 +1,30 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_multiset() { - std::cout << "test_multiset" << std::endl; +namespace test_multiset { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>( - std::multiset({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::multiset({"Bart", "Lisa", "Maggie"})); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_multiset diff --git a/tests/flexbuffers/test_optional_fields.hpp b/tests/flexbuffers/test_optional_fields.hpp index fd5c777d..c3a11126 100644 --- a/tests/flexbuffers/test_optional_fields.hpp +++ b/tests/flexbuffers/test_optional_fields.hpp @@ -1,20 +1,23 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_optional_fields() { - std::cout << "test_optional_fields" << std::endl; +namespace test_optional_fields { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::optional>> children = - rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::optional>> children = + rfl::default_value; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart"}; @@ -28,3 +31,4 @@ void test_optional_fields() { write_and_read(homer); } +} // namespace test_optional_fields diff --git a/tests/flexbuffers/test_readme_example.hpp b/tests/flexbuffers/test_readme_example.hpp index df31a5a8..32fba941 100644 --- a/tests/flexbuffers/test_readme_example.hpp +++ b/tests/flexbuffers/test_readme_example.hpp @@ -1,25 +1,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_readme_example() { - std::cout << "test_readme_example" << std::endl; +namespace test_readme_example { - using Age = rfl::Validator, rfl::Maximum<130>>>; +using Age = rfl::Validator, rfl::Maximum<130>>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"age", Age> age; - rfl::Field<"email", rfl::Email> email; - rfl::Field<"children", std::vector> children; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; + rfl::Field<"age", Age> age; + rfl::Field<"email", rfl::Email> email; + rfl::Field<"children", std::vector> children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart", .last_name = "Simpson", @@ -52,3 +55,4 @@ void test_readme_example() { write_and_read(homer); } +} // namespace test_readme_example diff --git a/tests/flexbuffers/test_ref.hpp b/tests/flexbuffers/test_ref.hpp index c9f7e2cf..218900a4 100644 --- a/tests/flexbuffers/test_ref.hpp +++ b/tests/flexbuffers/test_ref.hpp @@ -2,32 +2,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_ref() { - std::cout << "test_ref" << std::endl; +namespace test_ref { - struct DecisionTree { - struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; - }; - - struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", rfl::Ref> lesser; - rfl::Field<"right", rfl::Ref> greater; - }; - - using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; - - rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +struct DecisionTree { + struct Leaf { + rfl::Field<"value", double> value; }; + struct Node { + rfl::Field<"criticalValue", double> critical_value; + rfl::Field<"left", rfl::Ref> lesser; + rfl::Field<"right", rfl::Ref> greater; + }; + + using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; + + rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + const auto leaf1 = DecisionTree::Leaf{.value = 3.0}; const auto leaf2 = DecisionTree::Leaf{.value = 5.0}; @@ -41,3 +42,4 @@ void test_ref() { write_and_read(tree); } +} // namespace test_ref diff --git a/tests/flexbuffers/test_save_load.hpp b/tests/flexbuffers/test_save_load.hpp index 505c1c55..e3fbc7dd 100644 --- a/tests/flexbuffers/test_save_load.hpp +++ b/tests/flexbuffers/test_save_load.hpp @@ -2,25 +2,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_save_load() { - std::cout << "test_save_load" << std::endl; +namespace test_save_load { - using Age = rfl::Validator, rfl::Maximum<130>>>; +using Age = rfl::Validator, rfl::Maximum<130>>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"age", Age> age; - rfl::Field<"email", rfl::Email> email; - rfl::Field<"children", std::vector> children; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; + rfl::Field<"age", Age> age; + rfl::Field<"email", rfl::Email> email; + rfl::Field<"children", std::vector> children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart", .last_name = "Simpson", @@ -66,3 +69,4 @@ void test_save_load() { std::cout << "OK" << std::endl << std::endl; } +} // namespace test_save_load diff --git a/tests/flexbuffers/test_set.hpp b/tests/flexbuffers/test_set.hpp index 1dceee01..7ac91c0e 100644 --- a/tests/flexbuffers/test_set.hpp +++ b/tests/flexbuffers/test_set.hpp @@ -1,26 +1,30 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_set() { - std::cout << "test_set" << std::endl; +namespace test_set { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; - auto children = std::make_unique>( - std::set({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::set({"Bart", "Lisa", "Maggie"})); - write_and_read(homer); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read(homer); } +} // namespace test_set diff --git a/tests/flexbuffers/test_string_map.hpp b/tests/flexbuffers/test_string_map.hpp index a1d97aed..ec6d5997 100644 --- a/tests/flexbuffers/test_string_map.hpp +++ b/tests/flexbuffers/test_string_map.hpp @@ -3,18 +3,21 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_string_map() { - std::cout << "test_string_map" << std::endl; +namespace test_string_map { +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - std::map> homer; - homer.insert( - std::make_pair("firstName", std::make_unique("Homer"))); - homer.insert( - std::make_pair("lastName", std::make_unique("Simpson"))); + std::map> homer; + homer.insert( + std::make_pair("firstName", std::make_unique("Homer"))); + homer.insert( + std::make_pair("lastName", std::make_unique("Simpson"))); - write_and_read(homer); + write_and_read(homer); } +} // namespace test_string_map diff --git a/tests/flexbuffers/test_string_unordered_map.hpp b/tests/flexbuffers/test_string_unordered_map.hpp index 325277ca..9f510245 100644 --- a/tests/flexbuffers/test_string_unordered_map.hpp +++ b/tests/flexbuffers/test_string_unordered_map.hpp @@ -2,24 +2,27 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_string_unordered_map() { - std::cout << "test_string_unordered_map" << std::endl; +namespace test_string_unordered_map { +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - using Map = std::unordered_map>; - Map homer; - homer.insert( - std::make_pair("firstName", std::make_unique("Homer"))); - homer.insert( - std::make_pair("lastName", std::make_unique("Simpson"))); + using Map = std::unordered_map>; + Map homer; + homer.insert( + std::make_pair("firstName", std::make_unique("Homer"))); + homer.insert( + std::make_pair("lastName", std::make_unique("Simpson"))); - // Unordered maps are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::flexbuf::write(homer); - const auto homer2 = rfl::flexbuf::read(json_string); - std::cout << "OK" << std::endl << std::endl; + // Unordered maps are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::flexbuf::write(homer); + const auto homer2 = rfl::flexbuf::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_string_unordered_map diff --git a/tests/flexbuffers/test_tagged_union.hpp b/tests/flexbuffers/test_tagged_union.hpp index a33b6fbe..9b18b64d 100644 --- a/tests/flexbuffers/test_tagged_union.hpp +++ b/tests/flexbuffers/test_tagged_union.hpp @@ -2,30 +2,29 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_tagged_union() { - std::cout << "test_tagged_union" << std::endl; +namespace test_tagged_union { - struct Circle { - rfl::Field<"shape", rfl::Literal<"Circle">> shape = rfl::default_value; - rfl::Field<"radius", double> radius; - }; +struct Circle { + double radius; +}; - struct Rectangle { - rfl::Field<"shape", rfl::Literal<"Rectangle">> shape = rfl::default_value; - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; - }; +struct Rectangle { + double height; + double width; +}; - struct Square { - rfl::Field<"shape", rfl::Literal<"Square">> shape = rfl::default_value; - rfl::Field<"width", double> width; - }; +struct Square { + double width; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; @@ -33,3 +32,4 @@ void test_tagged_union() { write_and_read(r); } +} // namespace test_tagged_union diff --git a/tests/flexbuffers/test_unique_ptr.hpp b/tests/flexbuffers/test_unique_ptr.hpp index 3f36e5d0..938baae5 100644 --- a/tests/flexbuffers/test_unique_ptr.hpp +++ b/tests/flexbuffers/test_unique_ptr.hpp @@ -2,20 +2,23 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unique_ptr() { - std::cout << "test_unique_ptr" << std::endl; +namespace test_unique_ptr { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> children = + rfl::default_value; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; auto children = std::make_unique>(); children->emplace_back(Person{.first_name = "Bart"}); @@ -27,3 +30,4 @@ void test_unique_ptr() { write_and_read(homer); } +} // namespace test_unique_ptr diff --git a/tests/flexbuffers/test_unique_ptr2.hpp b/tests/flexbuffers/test_unique_ptr2.hpp index dcfaa060..73936561 100644 --- a/tests/flexbuffers/test_unique_ptr2.hpp +++ b/tests/flexbuffers/test_unique_ptr2.hpp @@ -2,32 +2,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unique_ptr2() { - std::cout << "test_unique_ptr2" << std::endl; +namespace test_unique_ptr2 { - struct DecisionTree { - struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; - }; - - struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", std::unique_ptr> lesser; - rfl::Field<"right", std::unique_ptr> greater; - }; - - using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; - - rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +struct DecisionTree { + struct Leaf { + rfl::Field<"value", double> value; }; + struct Node { + rfl::Field<"criticalValue", double> critical_value; + rfl::Field<"left", std::unique_ptr> lesser; + rfl::Field<"right", std::unique_ptr> greater; + }; + + using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; + + rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + auto leaf1 = DecisionTree::Leaf{.value = 3.0}; auto leaf2 = DecisionTree::Leaf{.value = 5.0}; @@ -41,3 +42,4 @@ void test_unique_ptr2() { write_and_read(tree); } +} // namespace test_unique_ptr2 diff --git a/tests/flexbuffers/test_unordered_map.hpp b/tests/flexbuffers/test_unordered_map.hpp index 17c02df6..2fa6a07a 100644 --- a/tests/flexbuffers/test_unordered_map.hpp +++ b/tests/flexbuffers/test_unordered_map.hpp @@ -1,32 +1,36 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unordered_map() { - std::cout << "test_unordered_map" << std::endl; +namespace test_unordered_map { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> + children = rfl::default_value; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - // Unordered maps are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::flexbuf::write(homer); - const auto homer2 = rfl::flexbuf::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered maps are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::flexbuf::write(homer); + const auto homer2 = rfl::flexbuf::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_map diff --git a/tests/flexbuffers/test_unordered_multimap.hpp b/tests/flexbuffers/test_unordered_multimap.hpp index 8cf4302c..fda91b1a 100644 --- a/tests/flexbuffers/test_unordered_multimap.hpp +++ b/tests/flexbuffers/test_unordered_multimap.hpp @@ -2,32 +2,35 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_unordered_multimap() { - std::cout << "test_unordered_multimap" << std::endl; +namespace test_unordered_multimap { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", - std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> + children = rfl::default_value; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - // Unordered maps are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::flexbuf::write(homer); - const auto homer2 = rfl::flexbuf::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered maps are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::flexbuf::write(homer); + const auto homer2 = rfl::flexbuf::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_multimap diff --git a/tests/flexbuffers/test_unordered_multiset.hpp b/tests/flexbuffers/test_unordered_multiset.hpp index 2289b8d6..d47e54a8 100644 --- a/tests/flexbuffers/test_unordered_multiset.hpp +++ b/tests/flexbuffers/test_unordered_multiset.hpp @@ -1,31 +1,34 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unordered_multiset() { - std::cout << "test_unordered_multiset" << std::endl; +namespace test_unordered_multiset { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", - std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> + children = rfl::default_value; +}; - auto children = std::make_unique>( - std::unordered_multiset({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::unordered_multiset({"Bart", "Lisa", "Maggie"})); - // Unordered multisets are unpredictable. We therefore only make sure that - // this compiles. - const auto json_string = rfl::flexbuf::write(homer); - const auto homer2 = rfl::flexbuf::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered multisets are unpredictable. We therefore only make sure that + // this compiles. + const auto json_string = rfl::flexbuf::write(homer); + const auto homer2 = rfl::flexbuf::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_multiset diff --git a/tests/flexbuffers/test_unordered_set.hpp b/tests/flexbuffers/test_unordered_set.hpp index 50ce449b..a1d43693 100644 --- a/tests/flexbuffers/test_unordered_set.hpp +++ b/tests/flexbuffers/test_unordered_set.hpp @@ -1,30 +1,34 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unordered_set() { - std::cout << "test_unordered_set" << std::endl; +namespace test_unordered_set { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name = "Simpson"; + rfl::Field<"children", std::unique_ptr>> + children = rfl::default_value; +}; - auto children = std::make_unique>( - std::unordered_set({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::unordered_set({"Bart", "Lisa", "Maggie"})); - // Unordered sets are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::flexbuf::write(homer); - const auto homer2 = rfl::flexbuf::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered sets are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::flexbuf::write(homer); + const auto homer2 = rfl::flexbuf::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_set diff --git a/tests/flexbuffers/test_variant.hpp b/tests/flexbuffers/test_variant.hpp index da4e1f70..1b3927ab 100644 --- a/tests/flexbuffers/test_variant.hpp +++ b/tests/flexbuffers/test_variant.hpp @@ -2,27 +2,29 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_variant() { - std::cout << "test_variant" << std::endl; +namespace test_variant { - struct Circle { - rfl::Field<"radius", double> radius; - }; +struct Circle { + rfl::Field<"radius", double> radius; +}; - struct Rectangle { - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; - }; +struct Rectangle { + rfl::Field<"height", double> height; + rfl::Field<"width", double> width; +}; - struct Square { - rfl::Field<"width", double> width; - }; +struct Square { + rfl::Field<"width", double> width; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; using Shapes = std::variant>; @@ -30,3 +32,4 @@ void test_variant() { write_and_read(r); } +} // namespace test_variant diff --git a/tests/flexbuffers/tests.cpp b/tests/flexbuffers/tests.cpp index 3bb1137e..90095446 100644 --- a/tests/flexbuffers/tests.cpp +++ b/tests/flexbuffers/tests.cpp @@ -33,43 +33,43 @@ #include "test_variant.hpp" int main() { - test_readme_example(); - test_monster_example1(); - test_monster_example2(); - test_anonymous_fields(); - test_flatten_anonymous(); - test_optional_fields(); - test_unique_ptr(); - test_unique_ptr2(); - test_literal(); - test_variant(); - test_field_variant(); - test_tagged_union(); - test_custom_class1(); - test_custom_class2(); - test_custom_class3(); - test_box(); - test_ref(); + test_readme_example::test(); + test_monster_example1::test(); + test_monster_example2::test(); + test_anonymous_fields::test(); + test_flatten_anonymous::test(); + test_optional_fields::test(); + test_unique_ptr::test(); + test_unique_ptr2::test(); + test_literal::test(); + test_variant::test(); + test_field_variant::test(); + test_tagged_union::test(); + test_custom_class1::test(); + test_custom_class2::test(); + test_custom_class3::test(); + test_box::test(); + test_ref::test(); - test_deque(); - test_forward_list(); - test_list(); - test_map(); - test_multimap(); - test_multiset(); - test_set(); - test_string_map(); - test_string_unordered_map(); - test_unordered_map(); - test_unordered_multimap(); - test_unordered_multiset(); - test_unordered_set(); + test_deque::test(); + test_forward_list::test(); + test_list::test(); + test_map::test(); + test_multimap::test(); + test_multiset::test(); + test_set::test(); + test_string_map::test(); + test_string_unordered_map::test(); + test_unordered_map::test(); + test_unordered_multimap::test(); + test_unordered_multiset::test(); + test_unordered_set::test(); - test_custom_constructor(); + test_custom_constructor::test(); - test_all_of(); + test_all_of::test(); - test_save_load(); + test_save_load::test(); return 0; } diff --git a/tests/json/test_all_of.hpp b/tests/json/test_all_of.hpp index c9c23f2d..eae5fe93 100644 --- a/tests/json/test_all_of.hpp +++ b/tests/json/test_all_of.hpp @@ -1,21 +1,24 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_all_of() { - std::cout << "test_all_of" << std::endl; +namespace test_all_of { - using Age = rfl::Validator, rfl::Maximum<130>>; +using Age = rfl::Validator, rfl::Maximum<130>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", Age> age; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + Age age; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto homer = Person{.first_name = "Homer", .last_name = "Simpson", .age = 45}; @@ -23,3 +26,4 @@ void test_all_of() { write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson","age":45})"); } +} // namespace test_all_of diff --git a/tests/json/test_alphanumeric_map.hpp b/tests/json/test_alphanumeric_map.hpp index 00129208..a2fca5ec 100644 --- a/tests/json/test_alphanumeric_map.hpp +++ b/tests/json/test_alphanumeric_map.hpp @@ -3,12 +3,15 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_alphanumeric_map() { - std::cout << "test_alphanumeric_map" << std::endl; +namespace test_alphanumeric_map { + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; std::map> homer; homer.insert( @@ -18,3 +21,5 @@ void test_alphanumeric_map() { write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson"})"); } + +} // namespace test_alphanumeric_map diff --git a/tests/json/test_alphanumeric_unordered_map.hpp b/tests/json/test_alphanumeric_unordered_map.hpp index 81a2a67d..9dd15a19 100644 --- a/tests/json/test_alphanumeric_unordered_map.hpp +++ b/tests/json/test_alphanumeric_unordered_map.hpp @@ -2,13 +2,15 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_alphanumeric_unordered_map() { - std::cout << "test_alphanumeric_unordered_map" << std::endl; +namespace test_alphanumeric_unordered_map { +void test() { + std::cout << std::source_location::current().function_name() << std::endl; using Map = std::unordered_map>; @@ -24,3 +26,4 @@ void test_alphanumeric_unordered_map() { const auto homer2 = rfl::json::read(json_string); std::cout << "OK" << std::endl << std::endl; } +} // namespace test_alphanumeric_unordered_map diff --git a/tests/json/test_anonymous_fields.hpp b/tests/json/test_anonymous_fields.hpp index bb480e53..f13aedcc 100644 --- a/tests/json/test_anonymous_fields.hpp +++ b/tests/json/test_anonymous_fields.hpp @@ -1,25 +1,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_anonymous_fields() { - std::cout << "test_anonymous_fields" << std::endl; +namespace test_anonymous_fields { - using Age = rfl::Validator, rfl::Maximum<130>>>; +using Age = rfl::Validator, rfl::Maximum<130>>>; - struct Person { - std::string first_name; - std::string last_name; - rfl::Timestamp<"%Y-%m-%d"> birthday; - Age age; - rfl::Email email; - std::vector children; - }; +struct Person { + std::string first_name; + std::string last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; + Age age; + rfl::Email email; + std::vector children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart", .last_name = "Simpson", @@ -49,5 +52,6 @@ void test_anonymous_fields() { write_and_read( homer, - R"(["Homer","Simpson","1987-04-19",45,"homer@simpson.com",[["Bart","Simpson","1987-04-19",10,"bart@simpson.com",[]],["Lisa","Simpson","1987-04-19",8,"lisa@simpson.com",[]],["Maggie","Simpson","1987-04-19",0,"maggie@simpson.com",[]]]])"); + R"({"first_name":"Homer","last_name":"Simpson","birthday":"1987-04-19","age":45,"email":"homer@simpson.com","children":[{"first_name":"Bart","last_name":"Simpson","birthday":"1987-04-19","age":10,"email":"bart@simpson.com","children":[]},{"first_name":"Lisa","last_name":"Simpson","birthday":"1987-04-19","age":8,"email":"lisa@simpson.com","children":[]},{"first_name":"Maggie","last_name":"Simpson","birthday":"1987-04-19","age":0,"email":"maggie@simpson.com","children":[]}]})"); } +} // namespace test_anonymous_fields diff --git a/tests/json/test_any_of.hpp b/tests/json/test_any_of.hpp index 96cb7345..390724f1 100644 --- a/tests/json/test_any_of.hpp +++ b/tests/json/test_any_of.hpp @@ -1,24 +1,27 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_any_of() { - std::cout << "test_any_of" << std::endl; +namespace test_any_of { - using Age = rfl::Validator< - unsigned int, - rfl::AnyOf, rfl::Maximum<10>>, - rfl::AllOf, rfl::Maximum<130>>>>; +using Age = + rfl::Validator, rfl::Maximum<10>>, + rfl::AllOf, rfl::Maximum<130>>>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", Age> age; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + Age age; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto homer = Person{.first_name = "Homer", .last_name = "Simpson", .age = 45}; @@ -26,3 +29,5 @@ void test_any_of() { write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson","age":45})"); } + +} // namespace test_any_of diff --git a/tests/json/test_array.hpp b/tests/json/test_array.hpp index c0923536..de51ddc8 100644 --- a/tests/json/test_array.hpp +++ b/tests/json/test_array.hpp @@ -3,36 +3,38 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_array() { - std::cout << "test_array" << std::endl; +namespace test_array { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children = nullptr; +}; - auto bart = Person{.first_name = "Bart"}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - auto lisa = Person{.first_name = "Lisa"}; + auto bart = Person{.first_name = "Bart"}; - auto maggie = Person{.first_name = "Maggie"}; + auto lisa = Person{.first_name = "Lisa"}; - const auto homer = Person{ - .first_name = "Homer", - .children = - std::make_unique>(std::array{ - std::move(bart), std::move(lisa), std::move(maggie)})}; + auto maggie = Person{.first_name = "Maggie"}; - write_and_read( - homer, - "{\"firstName\":\"Homer\",\"lastName\":\"Simpson\",\"children\":[{" - "\"firstName\":\"Bart\",\"lastName\":\"Simpson\"},{" - "\"firstName\":\"Lisa\",\"lastName\":\"Simpson\"},{" - "\"firstName\":\"Maggie\",\"lastName\":\"Simpson\"}]}"); + const auto homer = Person{ + .first_name = "Homer", + .children = std::make_unique>(std::array{ + std::move(bart), std::move(lisa), std::move(maggie)})}; + + write_and_read( + homer, + "{\"firstName\":\"Homer\",\"lastName\":\"Simpson\",\"children\":[{" + "\"firstName\":\"Bart\",\"lastName\":\"Simpson\"},{" + "\"firstName\":\"Lisa\",\"lastName\":\"Simpson\"},{" + "\"firstName\":\"Maggie\",\"lastName\":\"Simpson\"}]}"); } +} // namespace test_array diff --git a/tests/json/test_as.hpp b/tests/json/test_as.hpp index a6f39395..c392c009 100644 --- a/tests/json/test_as.hpp +++ b/tests/json/test_as.hpp @@ -2,35 +2,40 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_as() { - std::cout << "test_as" << std::endl; +namespace test_as { - struct A { - rfl::Field<"f1", std::string> f1; - rfl::Field<"f2", rfl::Box> f2; - }; +struct A { + rfl::Field<"f1", std::string> f1; + rfl::Field<"f2", rfl::Box> f2; +}; - struct B { - rfl::Field<"f3", std::string> f3; - rfl::Field<"f4", rfl::Box> f4; - }; +struct B { + rfl::Field<"f3", std::string> f3; + rfl::Field<"f4", rfl::Box> f4; +}; - struct C { - rfl::Field<"f1", std::string> f1; - rfl::Field<"f2", rfl::Box> f2; - rfl::Field<"f4", rfl::Box> f4; - }; +struct C { + rfl::Field<"f1", std::string> f1; + rfl::Field<"f2", rfl::Box> f2; + rfl::Field<"f4", rfl::Box> f4; +}; - auto a = A{.f1 = "Hello", .f2 = rfl::make_box("World")}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - auto b = B{.f3 = "Hello", .f4 = rfl::make_box("World")}; + auto a = A{.f1 = "Hello", .f2 = rfl::make_box("World")}; - const auto c = rfl::as(std::move(a), std::move(b)); + auto b = B{.f3 = "Hello", .f4 = rfl::make_box("World")}; - write_and_read(c, R"({"f1":"Hello","f2":"World","f4":"World"})"); + const auto c = rfl::as(std::move(a), std::move(b)); + + write_and_read(c, R"({"f1":"Hello","f2":"World","f4":"World"})"); } + +} // namespace test_as diff --git a/tests/json/test_as_flatten.hpp b/tests/json/test_as_flatten.hpp index a50c7f68..69cda447 100644 --- a/tests/json/test_as_flatten.hpp +++ b/tests/json/test_as_flatten.hpp @@ -2,37 +2,41 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_as_flatten() { - std::cout << "test_as_flatten" << std::endl; +namespace test_as_flatten { - struct A { - rfl::Field<"f1", std::string> f1; - rfl::Field<"f2", rfl::Box> f2; - }; +struct A { + rfl::Field<"f1", std::string> f1; + rfl::Field<"f2", rfl::Box> f2; +}; - struct B { - rfl::Field<"f3", std::string> f3; - rfl::Field<"f4", rfl::Box> f4; - }; +struct B { + rfl::Field<"f3", std::string> f3; + rfl::Field<"f4", rfl::Box> f4; +}; - struct C { - rfl::Flatten a; - rfl::Flatten b; - rfl::Field<"f5", int> f5; - }; +struct C { + rfl::Flatten a; + rfl::Flatten b; + rfl::Field<"f5", int> f5; +}; - auto a = A{.f1 = "Hello", .f2 = rfl::make_box("World")}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - auto b = B{.f3 = "Hello", .f4 = rfl::make_box("World")}; + auto a = A{.f1 = "Hello", .f2 = rfl::make_box("World")}; - const auto c = - rfl::as(std::move(a), std::move(b), rfl::make_field<"f5">(5)); + auto b = B{.f3 = "Hello", .f4 = rfl::make_box("World")}; - write_and_read( - c, R"({"f1":"Hello","f2":"World","f3":"Hello","f4":"World","f5":5})"); + const auto c = + rfl::as(std::move(a), std::move(b), rfl::make_field<"f5">(5)); + + write_and_read( + c, R"({"f1":"Hello","f2":"World","f3":"Hello","f4":"World","f5":5})"); } +} // namespace test_as_flatten diff --git a/tests/json/test_box.hpp b/tests/json/test_box.hpp index 9317efdd..1e08f80c 100644 --- a/tests/json/test_box.hpp +++ b/tests/json/test_box.hpp @@ -2,44 +2,48 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_box() { - std::cout << "test_box" << std::endl; +namespace test_box { - struct DecisionTree { - struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; - }; +struct DecisionTree { + struct Leaf { + using Tag = rfl::Literal<"Leaf">; + double value; + }; - struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", rfl::Box> lesser; - rfl::Field<"right", rfl::Box> greater; - }; + struct Node { + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + rfl::Box lesser; + rfl::Box greater; + }; - using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; + using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; - rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; - }; + rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +}; - auto leaf1 = DecisionTree::Leaf{.value = 3.0}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - auto leaf2 = DecisionTree::Leaf{.value = 5.0}; + auto leaf1 = DecisionTree::Leaf{.value = 3.0}; - auto node = DecisionTree::Node{ - .critical_value = 10.0, - .lesser = rfl::make_box(DecisionTree{leaf1}), - .greater = rfl::make_box(DecisionTree{leaf2})}; + auto leaf2 = DecisionTree::Leaf{.value = 5.0}; - const DecisionTree tree{.leaf_or_node = std::move(node)}; + auto node = DecisionTree::Node{ + .critical_value = 10.0, + .lesser = rfl::make_box(DecisionTree{leaf1}), + .greater = rfl::make_box(DecisionTree{leaf2})}; - write_and_read( - tree, - R"({"leafOrNode":{"type":"Node","criticalValue":10.0,"left":{"leafOrNode":{"type":"Leaf","value":3.0}},"right":{"leafOrNode":{"type":"Leaf","value":5.0}}}})"); + const DecisionTree tree{.leaf_or_node = std::move(node)}; + + write_and_read( + tree, + R"({"leafOrNode":{"type":"Node","criticalValue":10.0,"lesser":{"leafOrNode":{"type":"Leaf","value":3.0}},"greater":{"leafOrNode":{"type":"Leaf","value":5.0}}}})"); } +} // namespace test_box diff --git a/tests/json/test_custom_class1.hpp b/tests/json/test_custom_class1.hpp index 42670065..468752b0 100644 --- a/tests/json/test_custom_class1.hpp +++ b/tests/json/test_custom_class1.hpp @@ -2,37 +2,40 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_custom_class1() { - std::cout << "test_custom_class1" << std::endl; +namespace test_custom_class1 { - struct Person { - struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::vector> children = - rfl::default_value; - }; +struct Person { + struct PersonImpl { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::vector children; + }; - using ReflectionType = PersonImpl; + using ReflectionType = PersonImpl; - Person(const PersonImpl& _impl) : impl(_impl) {} + Person(const PersonImpl& _impl) : impl(_impl) {} - Person(const std::string& _first_name) - : impl(PersonImpl{.first_name = _first_name}) {} + Person(const std::string& _first_name) + : impl(PersonImpl{.first_name = _first_name}) {} - const ReflectionType& reflection() const { return impl; }; + const ReflectionType& reflection() const { return impl; }; - private: - PersonImpl impl; - }; + private: + PersonImpl impl; +}; - const auto bart = Person("Bart"); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read( - bart, R"({"firstName":"Bart","lastName":"Simpson","children":[]})"); + const auto bart = Person("Bart"); + + write_and_read(bart, + R"({"firstName":"Bart","lastName":"Simpson","children":[]})"); } +} // namespace test_custom_class1 diff --git a/tests/json/test_custom_class2.hpp b/tests/json/test_custom_class2.hpp index 7025695f..aff5b697 100644 --- a/tests/json/test_custom_class2.hpp +++ b/tests/json/test_custom_class2.hpp @@ -2,41 +2,45 @@ #include #include #include +#include #include #include #include #include "write_and_read.hpp" -void test_custom_class2() { - std::cout << "test_custom_class2" << std::endl; +namespace test_custom_class2 { - struct FiveDigitCode { - using ReflectionType = int; +struct FiveDigitCode { + using ReflectionType = int; - FiveDigitCode(const int _code) : code(_code) { - if (_code < 10000) { - throw std::runtime_error("Less than five digits."); - } - if (_code > 99999) { - throw std::runtime_error("More than five digits."); - } - } - - ReflectionType reflection() const { return code; }; - - private: - int code; - }; - - const auto result = rfl::json::read("123"); - - if (result) { - std::cout << "Failed: Expected an error, but got none." << std::endl; - return; + FiveDigitCode(const int _code) : code(_code) { + if (_code < 10000) { + throw std::runtime_error("Less than five digits."); } + if (_code > 99999) { + throw std::runtime_error("More than five digits."); + } + } - const auto c = FiveDigitCode(12345); + ReflectionType reflection() const { return code; }; - write_and_read(c, "12345"); + private: + int code; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + + const auto result = rfl::json::read("123"); + + if (result) { + std::cout << "Failed: Expected an error, but got none." << std::endl; + return; + } + + const auto c = FiveDigitCode(12345); + + write_and_read(c, "12345"); } +} // namespace test_custom_class2 diff --git a/tests/json/test_custom_class3.hpp b/tests/json/test_custom_class3.hpp index 6f3b00d7..f65e22c1 100644 --- a/tests/json/test_custom_class3.hpp +++ b/tests/json/test_custom_class3.hpp @@ -2,62 +2,65 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -namespace tcc3 { +namespace test_custom_class3 { struct Person { - Person(const std::string& _first_name, const std::string& _last_name, - const int _age) - : first_name_(_first_name), last_name_(_last_name), age_(_age) {} + Person(const std::string& _first_name, const std::string& _last_name, + const int _age) + : first_name_(_first_name), last_name_(_last_name), age_(_age) {} - const auto& first_name() const { return first_name_; } + const auto& first_name() const { return first_name_; } - const auto& last_name() const { return last_name_; } + const auto& last_name() const { return last_name_; } - auto age() const { return age_; } + auto age() const { return age_; } - private: - std::string first_name_; - std::string last_name_; - int age_; + private: + std::string first_name_; + std::string last_name_; + int age_; }; struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", int> age; + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + int age; - static PersonImpl from_class(const Person& _p) noexcept { - return PersonImpl{.first_name = _p.first_name(), - .last_name = _p.last_name(), - .age = _p.age()}; - } + static PersonImpl from_class(const Person& _p) noexcept { + return PersonImpl{.first_name = _p.first_name(), + .last_name = _p.last_name(), + .age = _p.age()}; + } - Person to_class() const { return Person(first_name(), last_name(), age()); } + Person to_class() const { return Person(first_name(), last_name(), age); } }; - -} // namespace tcc3 +} // namespace test_custom_class3 namespace rfl { namespace parsing { template -struct Parser - : public CustomParser {}; +struct Parser + : public CustomParser {}; } // namespace parsing } // namespace rfl -void test_custom_class3() { - std::cout << "test_custom_class3" << std::endl; +namespace test_custom_class3 { - const auto bart = tcc3::Person("Bart", "Simpson", 10); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read(bart, - R"({"firstName":"Bart","lastName":"Simpson","age":10})"); + const auto bart = Person("Bart", "Simpson", 10); + + write_and_read(bart, R"({"firstName":"Bart","lastName":"Simpson","age":10})"); } + +} // namespace test_custom_class3 diff --git a/tests/json/test_custom_class4.hpp b/tests/json/test_custom_class4.hpp index e7004b7d..5178acb4 100644 --- a/tests/json/test_custom_class4.hpp +++ b/tests/json/test_custom_class4.hpp @@ -2,64 +2,66 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -namespace tcc4 { +namespace test_custom_class4 { struct Person { - Person(const std::string& _first_name, - const rfl::Box& _last_name, int _age) - : first_name_(_first_name), - last_name_(rfl::make_box(*_last_name)), - age_(_age) {} + Person(const std::string& _first_name, + const rfl::Box& _last_name, int _age) + : first_name_(_first_name), + last_name_(rfl::make_box(*_last_name)), + age_(_age) {} - const auto& first_name() const { return first_name_; } + const auto& first_name() const { return first_name_; } - const auto& last_name() const { return last_name_; } + const auto& last_name() const { return last_name_; } - auto age() const { return age_; } + auto age() const { return age_; } - private: - std::string first_name_; - rfl::Box last_name_; - int age_; + private: + std::string first_name_; + rfl::Box last_name_; + int age_; }; struct PersonImpl { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", rfl::Box> last_name; - rfl::Field<"age", int> age; + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", rfl::Box> last_name; + rfl::Field<"age", int> age; - static PersonImpl from_class(const Person& _p) noexcept { - return PersonImpl{ - .first_name = _p.first_name(), - .last_name = rfl::make_box(*_p.last_name()), - .age = _p.age()}; - } + static PersonImpl from_class(const Person& _p) noexcept { + return PersonImpl{.first_name = _p.first_name(), + .last_name = rfl::make_box(*_p.last_name()), + .age = _p.age()}; + } }; -} // namespace tcc4 +} // namespace test_custom_class4 namespace rfl { namespace parsing { template -struct Parser - : public CustomParser {}; +struct Parser + : public CustomParser {}; } // namespace parsing } // namespace rfl -void test_custom_class4() { - std::cout << "test_custom_class4" << std::endl; +namespace test_custom_class4 { - const auto bart = - tcc4::Person("Bart", rfl::make_box("Simpson"), 10); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read(bart, - R"({"firstName":"Bart","lastName":"Simpson","age":10})"); + const auto bart = test_custom_class4::Person( + "Bart", rfl::make_box("Simpson"), 10); + + write_and_read(bart, R"({"firstName":"Bart","lastName":"Simpson","age":10})"); } +} // namespace test_custom_class4 diff --git a/tests/json/test_custom_constructor.hpp b/tests/json/test_custom_constructor.hpp index 4ca9c657..3ccd0c1a 100644 --- a/tests/json/test_custom_constructor.hpp +++ b/tests/json/test_custom_constructor.hpp @@ -1,52 +1,53 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that the example in the README works as expected. -// It would be embarrassing if it didn't... -void test_custom_constructor() { - std::cout << "test_custom_constructor" << std::endl; +namespace test_custom_constructor { - struct Person { - static rfl::Result from_json_obj( - typename rfl::json::Reader::InputVarType _obj) { - /// This only exists for the purpose of the test. - const auto change_first_name = [](auto&& _person) { - return rfl::replace( - std::move(_person), - rfl::Field<"firstName", std::string>("Bart")); - }; - const auto from_nt = [](auto&& _nt) { - return rfl::from_named_tuple(std::move(_nt)); - }; - return rfl::json::read>(_obj) - .transform(from_nt) - .transform(change_first_name); - } - - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; +struct Person { + static rfl::Result from_json_obj( + typename rfl::json::Reader::InputVarType _obj) { + /// This only exists for the purpose of the test. + const auto change_first_name = [](auto&& _person) { + return rfl::replace(std::move(_person), + rfl::Field<"firstName", std::string>("Bart")); }; + const auto from_nt = [](auto&& _nt) { + return rfl::from_named_tuple(std::move(_nt)); + }; + return rfl::json::read>(_obj) + .transform(from_nt) + .transform(change_first_name); + } - const auto res = rfl::json::read( - R"({"firstName":"Homer","lastName":"Simpson","birthday":"1987-04-19"})"); + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; +}; - if (!res) { - std::cout << "Test failed on read. Error: " - << res.error().value().what() << std::endl; - return; - } +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - if (res.value().first_name() != "Bart") { - std::cout << "Expected 'Bart', got '" << res.value().first_name() << "'" - << std::endl - << std::endl; - } else { - std::cout << "OK" << std::endl << std::endl; - } + const auto res = rfl::json::read( + R"({"firstName":"Homer","lastName":"Simpson","birthday":"1987-04-19"})"); + + if (!res) { + std::cout << "Test failed on read. Error: " << res.error().value().what() + << std::endl; + return; + } + + if (res.value().first_name() != "Bart") { + std::cout << "Expected 'Bart', got '" << res.value().first_name() << "'" + << std::endl + << std::endl; + } else { + std::cout << "OK" << std::endl << std::endl; + } } +} // namespace test_custom_constructor diff --git a/tests/json/test_default_values.hpp b/tests/json/test_default_values.hpp index 33fd0799..b2854f48 100644 --- a/tests/json/test_default_values.hpp +++ b/tests/json/test_default_values.hpp @@ -2,30 +2,32 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_default_values() { - std::cout << "test_default_values" << std::endl; +namespace test_default_values { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::vector> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::vector children; +}; - const auto bart = Person{.first_name = "Bart"}; - const auto lisa = Person{.first_name = "Lisa"}; - const auto maggie = Person{.first_name = "Maggie"}; - const auto homer = - Person{.first_name = "Homer", - .children = std::vector({bart, lisa, maggie})}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson","children":[]},{"firstName":"Lisa","lastName":"Simpson","children":[]},{"firstName":"Maggie","lastName":"Simpson","children":[]}]})"); + const auto bart = Person{.first_name = "Bart"}; + const auto lisa = Person{.first_name = "Lisa"}; + const auto maggie = Person{.first_name = "Maggie"}; + const auto homer = + Person{.first_name = "Homer", + .children = std::vector({bart, lisa, maggie})}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson","children":[]},{"firstName":"Lisa","lastName":"Simpson","children":[]},{"firstName":"Maggie","lastName":"Simpson","children":[]}]})"); } +} // namespace test_default_values diff --git a/tests/json/test_deque.hpp b/tests/json/test_deque.hpp index 78e8fec5..66540ef2 100644 --- a/tests/json/test_deque.hpp +++ b/tests/json/test_deque.hpp @@ -1,30 +1,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_deque() { - std::cout << "test_deque" << std::endl; +namespace test_deque { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->emplace_back(Person{.first_name = "Bart"}); - children->emplace_back(Person{.first_name = "Lisa"}); - children->emplace_back(Person{.first_name = "Maggie"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_back(Person{.first_name = "Bart"}); + children->emplace_back(Person{.first_name = "Lisa"}); + children->emplace_back(Person{.first_name = "Maggie"}); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); } +} // namespace test_deque diff --git a/tests/json/test_email.hpp b/tests/json/test_email.hpp index b99795a1..74d3c90b 100644 --- a/tests/json/test_email.hpp +++ b/tests/json/test_email.hpp @@ -1,19 +1,22 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_email() { - std::cout << "test_email" << std::endl; +namespace test_email { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"email", rfl::Email> email; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Email email; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto homer = Person{.first_name = "Homer", .last_name = "Simpson", @@ -23,3 +26,4 @@ void test_email() { homer, R"({"firstName":"Homer","lastName":"Simpson","email":"homer@simpson.com"})"); } +} // namespace test_email diff --git a/tests/json/test_error_messages.hpp b/tests/json/test_error_messages.hpp index 139c9dc0..adba716b 100644 --- a/tests/json/test_error_messages.hpp +++ b/tests/json/test_error_messages.hpp @@ -1,42 +1,46 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_error_messages() { - std::cout << "test_error_messages" << std::endl; +namespace test_error_messages { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"children", std::vector> children; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; + std::vector children; +}; - const std::string faulty_string = - R"({"firstName":"Homer","lastName":12345,"birthday":"04/19/1987"})"; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto result = rfl::json::read(faulty_string); + const std::string faulty_string = + R"({"firstName":"Homer","lastName":12345,"birthday":"04/19/1987"})"; - const std::string expected = R"(Found 3 errors: + const auto result = rfl::json::read(faulty_string); + + const std::string expected = R"(Found 3 errors: 1) Failed to parse field 'lastName': Could not cast to string. 2) Failed to parse field 'birthday': String '04/19/1987' did not match format '%Y-%m-%d'. 3) Field named 'children' not found.)"; - if (!result.error()) { - std::cout << "Expected an error, got none." << std::endl << std::endl; - } + if (!result.error()) { + std::cout << "Expected an error, got none." << std::endl << std::endl; + } - if (result.error().value().what() != expected) { - std::cout << "Expected: " << std::endl - << expected << std::endl - << "Got:" << std::endl - << result.error().value().what() << std::endl - << std::endl; - } + if (result.error().value().what() != expected) { + std::cout << "Expected: " << std::endl + << expected << std::endl + << "Got:" << std::endl + << result.error().value().what() << std::endl + << std::endl; + } - std::cout << "OK" << std::endl << std::endl; + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_error_messages diff --git a/tests/json/test_field_variant.hpp b/tests/json/test_field_variant.hpp index ec77300e..4b541ffc 100644 --- a/tests/json/test_field_variant.hpp +++ b/tests/json/test_field_variant.hpp @@ -2,33 +2,37 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_field_variant() { - std::cout << "test_field_variant" << std::endl; +namespace test_field_variant { - struct Circle { - rfl::Field<"radius", double> radius; - }; +struct Circle { + double radius; +}; - struct Rectangle { - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; - }; +struct Rectangle { + double height; + double width; +}; - struct Square { - rfl::Field<"width", double> width; - }; +struct Square { + double width; +}; - using Shapes = rfl::Variant, - rfl::Field<"rectangle", Rectangle>, - rfl::Field<"square", rfl::Box>>; +using Shapes = rfl::Variant, + rfl::Field<"rectangle", Rectangle>, + rfl::Field<"square", rfl::Box>>; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const Shapes r = rfl::make_field<"rectangle">(Rectangle{.height = 10, .width = 5}); write_and_read(r, R"({"rectangle":{"height":10.0,"width":5.0}})"); } +} // namespace test_field_variant diff --git a/tests/json/test_flatten.hpp b/tests/json/test_flatten.hpp index d1a67703..c2485755 100644 --- a/tests/json/test_flatten.hpp +++ b/tests/json/test_flatten.hpp @@ -2,34 +2,38 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_flatten() { - std::cout << "test_flatten" << std::endl; +namespace test_flatten { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", rfl::Box> last_name; - rfl::Field<"age", int> age; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", rfl::Box> last_name; + rfl::Field<"age", int> age; +}; - struct Employee { - rfl::Flatten person; - rfl::Field<"employer", rfl::Box> employer; - rfl::Field<"salary", float> salary; - }; +struct Employee { + rfl::Flatten person; + rfl::Field<"employer", rfl::Box> employer; + rfl::Field<"salary", float> salary; +}; - const auto employee = Employee{ - .person = Person{.first_name = "Homer", - .last_name = rfl::make_box("Simpson"), - .age = 45}, - .employer = rfl::make_box("Mr. Burns"), - .salary = 60000.0}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read( - employee, - R"({"firstName":"Homer","lastName":"Simpson","age":45,"employer":"Mr. Burns","salary":60000.0})"); + const auto employee = Employee{ + .person = Person{.first_name = "Homer", + .last_name = rfl::make_box("Simpson"), + .age = 45}, + .employer = rfl::make_box("Mr. Burns"), + .salary = 60000.0}; + + write_and_read( + employee, + R"({"firstName":"Homer","lastName":"Simpson","age":45,"employer":"Mr. Burns","salary":60000.0})"); } +} // namespace test_flatten diff --git a/tests/json/test_flatten_anonymous.hpp b/tests/json/test_flatten_anonymous.hpp index a4e030da..32dcdc07 100644 --- a/tests/json/test_flatten_anonymous.hpp +++ b/tests/json/test_flatten_anonymous.hpp @@ -2,25 +2,28 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_flatten_anonymous() { - std::cout << "test_flatten_anonymous" << std::endl; +namespace test_flatten_anonymous { - struct Person { - std::string first_name; - rfl::Box last_name; - int age; - }; +struct Person { + std::string first_name; + rfl::Box last_name; + int age; +}; - struct Employee { - rfl::Flatten person; - rfl::Box employer; - float salary; - }; +struct Employee { + rfl::Flatten person; + rfl::Box employer; + float salary; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto employee = Employee{ .person = Person{.first_name = "Homer", @@ -29,5 +32,9 @@ void test_flatten_anonymous() { .employer = rfl::make_box("Mr. Burns"), .salary = 60000.0}; - write_and_read(employee, R"(["Homer","Simpson",45,"Mr. Burns",60000.0])"); + write_and_read( + employee, + R"({"first_name":"Homer","last_name":"Simpson","age":45,"employer":"Mr. Burns","salary":60000.0})"); } + +} // namespace test_flatten_anonymous diff --git a/tests/json/test_flatten_tuple.hpp b/tests/json/test_flatten_tuple.hpp index 81442cfb..ea640024 100644 --- a/tests/json/test_flatten_tuple.hpp +++ b/tests/json/test_flatten_tuple.hpp @@ -2,13 +2,14 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" void test_flatten_tuple() { - std::cout << "test_flatten_tuple" << std::endl; + std::cout << std::source_location::current().function_name() << std::endl; using Person = std::tuple, int>; diff --git a/tests/json/test_forward_list.hpp b/tests/json/test_forward_list.hpp index 8ccfdb21..b4b87090 100644 --- a/tests/json/test_forward_list.hpp +++ b/tests/json/test_forward_list.hpp @@ -1,30 +1,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_forward_list() { - std::cout << "test_forward_list" << std::endl; +namespace test_forward_list { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->emplace_front(Person{.first_name = "Maggie"}); - children->emplace_front(Person{.first_name = "Lisa"}); - children->emplace_front(Person{.first_name = "Bart"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_front(Person{.first_name = "Maggie"}); + children->emplace_front(Person{.first_name = "Lisa"}); + children->emplace_front(Person{.first_name = "Bart"}); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); } +} // namespace test_forward_list diff --git a/tests/json/test_list.hpp b/tests/json/test_list.hpp index 06de7e72..d80efb65 100644 --- a/tests/json/test_list.hpp +++ b/tests/json/test_list.hpp @@ -1,30 +1,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_list() { - std::cout << "test_list" << std::endl; +namespace test_list { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->emplace_back(Person{.first_name = "Bart"}); - children->emplace_back(Person{.first_name = "Lisa"}); - children->emplace_back(Person{.first_name = "Maggie"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_back(Person{.first_name = "Bart"}); + children->emplace_back(Person{.first_name = "Lisa"}); + children->emplace_back(Person{.first_name = "Maggie"}); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); } +} // namespace test_list diff --git a/tests/json/test_literal.hpp b/tests/json/test_literal.hpp index 920b281d..2a666633 100644 --- a/tests/json/test_literal.hpp +++ b/tests/json/test_literal.hpp @@ -2,27 +2,29 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_literal() { - std::cout << "test_literal" << std::endl; +namespace test_literal { - using FirstName = rfl::Literal<"Homer", "Marge", "Bart", "Lisa", "Maggie">; - using LastName = rfl::Literal<"Simpson">; +using FirstName = rfl::Literal<"Homer", "Marge", "Bart", "Lisa", "Maggie">; +using LastName = rfl::Literal<"Simpson">; - struct Person { - rfl::Field<"firstName", FirstName> first_name; - rfl::Field<"lastName", LastName> last_name = rfl::default_value; - rfl::Field<"children", std::vector> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", FirstName> first_name; + rfl::Rename<"lastName", LastName> last_name; + std::vector children; +}; - const auto bart = Person{.first_name = FirstName::make<"Bart">()}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read( - bart, R"({"firstName":"Bart","lastName":"Simpson","children":[]})"); + const auto bart = Person{.first_name = FirstName::make<"Bart">()}; + + write_and_read(bart, + R"({"firstName":"Bart","lastName":"Simpson","children":[]})"); } +} // namespace test_literal diff --git a/tests/json/test_literal_map.hpp b/tests/json/test_literal_map.hpp index 4795e4bc..72281f50 100644 --- a/tests/json/test_literal_map.hpp +++ b/tests/json/test_literal_map.hpp @@ -3,15 +3,18 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_literal_map() { - std::cout << "test_literal_map" << std::endl; +namespace test_literal_map { - using FieldName = rfl::Literal<"firstName", "lastName">; +using FieldName = rfl::Literal<"firstName", "lastName">; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; std::map> homer; homer.insert(std::make_pair(FieldName::make<"firstName">(), @@ -21,3 +24,4 @@ void test_literal_map() { write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson"})"); } +} // namespace test_literal_map diff --git a/tests/json/test_literal_unordered_map.hpp b/tests/json/test_literal_unordered_map.hpp index fa7175e7..8a41e494 100644 --- a/tests/json/test_literal_unordered_map.hpp +++ b/tests/json/test_literal_unordered_map.hpp @@ -4,17 +4,20 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_literal_unordered_map() { - std::cout << "test_literal_unordered_map" << std::endl; +namespace test_literal_unordered_map { - using FieldName = rfl::Literal<"firstName", "lastName">; +using FieldName = rfl::Literal<"firstName", "lastName">; - using Map = std::unordered_map>; +using Map = std::unordered_map>; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; Map homer; @@ -29,3 +32,4 @@ void test_literal_unordered_map() { const auto homer2 = rfl::json::read(json_string); std::cout << "OK" << std::endl << std::endl; } +} // namespace test_literal_unordered_map diff --git a/tests/json/test_map.hpp b/tests/json/test_map.hpp index 8f0df897..bb96439c 100644 --- a/tests/json/test_map.hpp +++ b/tests/json/test_map.hpp @@ -2,19 +2,21 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_map() { - std::cout << "test_map" << std::endl; +namespace test_map { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; auto children = std::make_unique>(); children->insert(std::make_pair(1, Person{.first_name = "Bart"})); @@ -28,3 +30,4 @@ void test_map() { homer, R"({"firstName":"Homer","lastName":"Simpson","children":{"1":{"firstName":"Bart","lastName":"Simpson"},"2":{"firstName":"Lisa","lastName":"Simpson"},"3":{"firstName":"Maggie","lastName":"Simpson"}}})"); } +} // namespace test_map diff --git a/tests/json/test_map_with_key_validation.hpp b/tests/json/test_map_with_key_validation.hpp index 192c2375..ddd46c38 100644 --- a/tests/json/test_map_with_key_validation.hpp +++ b/tests/json/test_map_with_key_validation.hpp @@ -2,21 +2,23 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_map_with_key_validation() { - std::cout << "test_map_with_key_validation" << std::endl; +namespace test_map_with_key_validation { - using Between1and3 = rfl::Validator, rfl::Maximum<3>>; +using Between1and3 = rfl::Validator, rfl::Maximum<3>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; auto children = std::make_unique>(); @@ -31,3 +33,4 @@ void test_map_with_key_validation() { homer, R"({"firstName":"Homer","lastName":"Simpson","children":{"1":{"firstName":"Bart","lastName":"Simpson"},"2":{"firstName":"Lisa","lastName":"Simpson"},"3":{"firstName":"Maggie","lastName":"Simpson"}}})"); } +} // namespace test_map_with_key_validation diff --git a/tests/json/test_monster_example.hpp b/tests/json/test_monster_example.hpp index a4bdabdc..85d5a758 100644 --- a/tests/json/test_monster_example.hpp +++ b/tests/json/test_monster_example.hpp @@ -1,41 +1,44 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_monster_example() { - std::cout << "test_monster_example" << std::endl; +namespace test_monster_example { - using Color = rfl::Literal<"Red", "Green", "Blue">; +using Color = rfl::Literal<"Red", "Green", "Blue">; - struct Weapon { - std::string name; - short damage; - }; +struct Weapon { + std::string name; + short damage; +}; - using Equipment = rfl::Variant>; +using Equipment = rfl::Variant>; - struct Vec3 { - float x; - float y; - float z; - }; +struct Vec3 { + float x; + float y; + float z; +}; - struct Monster { - Vec3 pos; - short mana = 150; - short hp = 100; - std::string name; - bool friendly = false; - std::vector inventory; - Color color = Color::make<"Blue">(); - std::vector weapons; - Equipment equipped; - std::vector path; - }; +struct Monster { + Vec3 pos; + short mana = 150; + short hp = 100; + std::string name; + bool friendly = false; + std::vector inventory; + Color color = Color::make<"Blue">(); + std::vector weapons; + Equipment equipped; + std::vector path; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto sword = Weapon{.name = "Sword", .damage = 3}; const auto axe = Weapon{.name = "Axe", .damage = 5}; @@ -58,6 +61,6 @@ void test_monster_example() { write_and_read( orc, - R"([[1.0,2.0,3.0],150,80,"MyMonster",false,[0,1,2,3,4,5,6,7,8,9],"Red",[["Sword",3],["Axe",5]],{"weapon":["Axe",5]},[]])"); + R"({"pos":{"x":1.0,"y":2.0,"z":3.0},"mana":150,"hp":80,"name":"MyMonster","friendly":false,"inventory":[0,1,2,3,4,5,6,7,8,9],"color":"Red","weapons":[{"name":"Sword","damage":3},{"name":"Axe","damage":5}],"equipped":{"weapon":{"name":"Axe","damage":5}},"path":[]})"); } - +} // namespace test_monster_example diff --git a/tests/json/test_move_replace.hpp b/tests/json/test_move_replace.hpp index f4799a1f..fae44c5c 100644 --- a/tests/json/test_move_replace.hpp +++ b/tests/json/test_move_replace.hpp @@ -2,27 +2,31 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_move_replace() { - std::cout << "test_move_replace" << std::endl; +namespace test_move_replace { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"children", rfl::Box>> children; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Box> children; +}; - const auto lisa = Person{.first_name = "Lisa", - .last_name = "Simpson", - .children = rfl::make_box>()}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto maggie = - rfl::replace(lisa, rfl::make_field<"firstName">(std::string("Maggie"))); + const auto lisa = Person{.first_name = "Lisa", + .last_name = "Simpson", + .children = rfl::make_box>()}; - write_and_read( - maggie, R"({"firstName":"Maggie","lastName":"Simpson","children":[]})"); + const auto maggie = + rfl::replace(lisa, rfl::make_field<"firstName">(std::string("Maggie"))); + + write_and_read( + maggie, R"({"firstName":"Maggie","lastName":"Simpson","children":[]})"); } +} // namespace test_move_replace diff --git a/tests/json/test_multimap.hpp b/tests/json/test_multimap.hpp index 6746613e..0f875fd4 100644 --- a/tests/json/test_multimap.hpp +++ b/tests/json/test_multimap.hpp @@ -2,29 +2,32 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_multimap() { - std::cout << "test_multimap" << std::endl; +namespace test_multimap { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[[1,{"firstName":"Bart","lastName":"Simpson"}],[2,{"firstName":"Lisa","lastName":"Simpson"}],[3,{"firstName":"Maggie","lastName":"Simpson"}]]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[[1,{"firstName":"Bart","lastName":"Simpson"}],[2,{"firstName":"Lisa","lastName":"Simpson"}],[3,{"firstName":"Maggie","lastName":"Simpson"}]]})"); } +} // namespace test_multimap diff --git a/tests/json/test_multiset.hpp b/tests/json/test_multiset.hpp index 21d7062e..1335ee02 100644 --- a/tests/json/test_multiset.hpp +++ b/tests/json/test_multiset.hpp @@ -1,28 +1,31 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_multiset() { - std::cout << "test_multiset" << std::endl; +namespace test_multiset { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>( - std::multiset({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::multiset({"Bart", "Lisa", "Maggie"})); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":["Bart","Lisa","Maggie"]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":["Bart","Lisa","Maggie"]})"); } +} // namespace test_multiset diff --git a/tests/json/test_one_of.hpp b/tests/json/test_one_of.hpp index a5d7fa9c..51be48c7 100644 --- a/tests/json/test_one_of.hpp +++ b/tests/json/test_one_of.hpp @@ -1,24 +1,27 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_one_of() { - std::cout << "test_one_of" << std::endl; +namespace test_one_of { - using Age = rfl::Validator< - unsigned int, - rfl::OneOf, rfl::Maximum<10>>, - rfl::AllOf, rfl::Maximum<130>>>>; +using Age = + rfl::Validator, rfl::Maximum<10>>, + rfl::AllOf, rfl::Maximum<130>>>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", Age> age; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + Age age; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto homer = Person{.first_name = "Homer", .last_name = "Simpson", .age = 45}; @@ -26,3 +29,4 @@ void test_one_of() { write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson","age":45})"); } +} // namespace test_one_of diff --git a/tests/json/test_optional_fields.hpp b/tests/json/test_optional_fields.hpp index 4d27a15d..22adfb02 100644 --- a/tests/json/test_optional_fields.hpp +++ b/tests/json/test_optional_fields.hpp @@ -1,32 +1,35 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_optional_fields() { - std::cout << "test_optional_fields" << std::endl; +namespace test_optional_fields { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::optional>> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::optional> children; +}; - const auto bart = Person{.first_name = "Bart"}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto lisa = Person{.first_name = "Lisa"}; + const auto bart = Person{.first_name = "Bart"}; - const auto maggie = Person{.first_name = "Maggie"}; + const auto lisa = Person{.first_name = "Lisa"}; - const auto homer = - Person{.first_name = "Homer", - .children = std::vector({bart, lisa, maggie})}; + const auto maggie = Person{.first_name = "Maggie"}; - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); + const auto homer = + Person{.first_name = "Homer", + .children = std::vector({bart, lisa, maggie})}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); } +} // namespace test_optional_fields diff --git a/tests/json/test_readme_example.hpp b/tests/json/test_readme_example.hpp index 72228800..649e9077 100644 --- a/tests/json/test_readme_example.hpp +++ b/tests/json/test_readme_example.hpp @@ -1,59 +1,46 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that the example in the README works as expected. -// It would be embarrassing if it didn't... -void test_readme_example() { - std::cout << "test_readme_example" << std::endl; +namespace test_readme_example { - // Age must be a plausible number, between 0 and 130. This will - // be validated automatically. - using Age = rfl::Validator, rfl::Maximum<130>>; +using Age = rfl::Validator, rfl::Maximum<130>>; - // "firstName", "lastName" and "children" are the field names - // as they will appear in the JSON. The C++ standard is - // snake case, the JSON standard is camel case, so the names - // will not always be identical. - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"age", Age> age; - rfl::Field<"email", rfl::Email> email; - rfl::Field<"children", std::vector> children; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::string town = "Springfield"; + rfl::Timestamp<"%Y-%m-%d"> birthday; + Age age; + rfl::Email email; + std::vector children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart", - .last_name = "Simpson", .birthday = "1987-04-19", .age = 10, - .email = "bart@simpson.com", - .children = std::vector()}; + .email = "bart@simpson.com"}; - const auto lisa = Person{ - .first_name = "Lisa", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 8, - .email = "lisa@simpson.com", - .children = rfl::default_value // same as std::vector() - }; + const auto lisa = Person{.first_name = "Lisa", + .birthday = "1987-04-19", + .age = 8, + .email = "lisa@simpson.com"}; - // Returns a deep copy of the original object, - // replacing first_name. - const auto maggie = - rfl::replace(lisa, rfl::make_field<"firstName">(std::string("Maggie")), - rfl::make_field<"email">(std::string("maggie@simpson.com")), - rfl::make_field<"age">(0)); + const auto maggie = Person{.first_name = "Maggie", + .birthday = "1987-04-19", + .age = 0, + .email = "maggie@simpson.com"}; const auto homer = Person{.first_name = "Homer", - .last_name = "Simpson", .birthday = "1987-04-19", .age = 45, .email = "homer@simpson.com", @@ -61,5 +48,6 @@ void test_readme_example() { write_and_read( homer, - R"({"firstName":"Homer","lastName":"Simpson","birthday":"1987-04-19","age":45,"email":"homer@simpson.com","children":[{"firstName":"Bart","lastName":"Simpson","birthday":"1987-04-19","age":10,"email":"bart@simpson.com","children":[]},{"firstName":"Lisa","lastName":"Simpson","birthday":"1987-04-19","age":8,"email":"lisa@simpson.com","children":[]},{"firstName":"Maggie","lastName":"Simpson","birthday":"1987-04-19","age":0,"email":"maggie@simpson.com","children":[]}]})"); + R"({"firstName":"Homer","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":45,"email":"homer@simpson.com","children":[{"firstName":"Bart","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":10,"email":"bart@simpson.com","children":[]},{"firstName":"Lisa","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":8,"email":"lisa@simpson.com","children":[]},{"firstName":"Maggie","lastName":"Simpson","town":"Springfield","birthday":"1987-04-19","age":0,"email":"maggie@simpson.com","children":[]}]})"); } +} // namespace test_readme_example diff --git a/tests/json/test_ref.hpp b/tests/json/test_ref.hpp index b7fe3e90..b85e4d2b 100644 --- a/tests/json/test_ref.hpp +++ b/tests/json/test_ref.hpp @@ -2,44 +2,48 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_ref() { - std::cout << "test_ref" << std::endl; +namespace test_ref { - struct DecisionTree { - struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; - }; +struct DecisionTree { + struct Leaf { + using Tag = rfl::Literal<"Leaf">; + double value; + }; - struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", rfl::Ref> lesser; - rfl::Field<"right", rfl::Ref> greater; - }; + struct Node { + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + rfl::Ref lesser; + rfl::Ref greater; + }; - using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; + using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; - rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; - }; + rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +}; - const auto leaf1 = DecisionTree::Leaf{.value = 3.0}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto leaf2 = DecisionTree::Leaf{.value = 5.0}; + const auto leaf1 = DecisionTree::Leaf{.value = 3.0}; - auto node = DecisionTree::Node{ - .critical_value = 10.0, - .lesser = rfl::make_ref(DecisionTree{leaf1}), - .greater = rfl::make_ref(DecisionTree{leaf2})}; + const auto leaf2 = DecisionTree::Leaf{.value = 5.0}; - const DecisionTree tree{.leaf_or_node = std::move(node)}; + auto node = DecisionTree::Node{ + .critical_value = 10.0, + .lesser = rfl::make_ref(DecisionTree{leaf1}), + .greater = rfl::make_ref(DecisionTree{leaf2})}; - write_and_read( - tree, - R"({"leafOrNode":{"type":"Node","criticalValue":10.0,"left":{"leafOrNode":{"type":"Leaf","value":3.0}},"right":{"leafOrNode":{"type":"Leaf","value":5.0}}}})"); + const DecisionTree tree{.leaf_or_node = std::move(node)}; + + write_and_read( + tree, + R"({"leafOrNode":{"type":"Node","criticalValue":10.0,"lesser":{"leafOrNode":{"type":"Leaf","value":3.0}},"greater":{"leafOrNode":{"type":"Leaf","value":5.0}}}})"); } +} // namespace test_ref diff --git a/tests/json/test_replace.hpp b/tests/json/test_replace.hpp index 6d7229a0..d69eca37 100644 --- a/tests/json/test_replace.hpp +++ b/tests/json/test_replace.hpp @@ -2,27 +2,31 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_replace() { - std::cout << "test_replace" << std::endl; +namespace test_replace { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"children", rfl::Box>> children; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"children", rfl::Box>> children; +}; - auto lisa = Person{.first_name = "Lisa", - .last_name = "Simpson", - .children = rfl::make_box>()}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto maggie = rfl::replace( - std::move(lisa), rfl::make_field<"firstName">(std::string("Maggie"))); + auto lisa = Person{.first_name = "Lisa", + .last_name = "Simpson", + .children = rfl::make_box>()}; - write_and_read( - maggie, R"({"firstName":"Maggie","lastName":"Simpson","children":[]})"); + const auto maggie = rfl::replace( + std::move(lisa), rfl::make_field<"firstName">(std::string("Maggie"))); + + write_and_read( + maggie, R"({"firstName":"Maggie","lastName":"Simpson","children":[]})"); } +} // namespace test_replace diff --git a/tests/json/test_replace_flatten.hpp b/tests/json/test_replace_flatten.hpp index eedd15f9..9f22f8a3 100644 --- a/tests/json/test_replace_flatten.hpp +++ b/tests/json/test_replace_flatten.hpp @@ -2,38 +2,42 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_replace_flatten() { - std::cout << "test_replace_flatten" << std::endl; +namespace test_replace_flatten { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", rfl::Box> last_name; - rfl::Field<"age", int> age; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", rfl::Box> last_name; + rfl::Field<"age", int> age; +}; - struct Employee { - rfl::Flatten person; - rfl::Field<"employer", rfl::Box> employer; - rfl::Field<"salary", float> salary; - }; +struct Employee { + rfl::Flatten person; + rfl::Field<"employer", rfl::Box> employer; + rfl::Field<"salary", float> salary; +}; - auto employee = Employee{ - .person = Person{.first_name = "Homer", - .last_name = rfl::make_box("Simpson"), - .age = 45}, - .employer = rfl::make_box("Mr. Burns"), - .salary = 60000.0}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - auto employee2 = - rfl::replace(std::move(employee), rfl::make_field<"salary">(70000.0), - rfl::make_field<"age">(46)); + auto employee = Employee{ + .person = Person{.first_name = "Homer", + .last_name = rfl::make_box("Simpson"), + .age = 45}, + .employer = rfl::make_box("Mr. Burns"), + .salary = 60000.0}; - write_and_read( - employee2, - R"({"firstName":"Homer","lastName":"Simpson","age":46,"employer":"Mr. Burns","salary":70000.0})"); + auto employee2 = + rfl::replace(std::move(employee), rfl::make_field<"salary">(70000.0), + rfl::make_field<"age">(46)); + + write_and_read( + employee2, + R"({"firstName":"Homer","lastName":"Simpson","age":46,"employer":"Mr. Burns","salary":70000.0})"); } +} // namespace test_replace_flatten diff --git a/tests/json/test_replace_with_other_struct.hpp b/tests/json/test_replace_with_other_struct.hpp index 415b388a..8f946a3f 100644 --- a/tests/json/test_replace_with_other_struct.hpp +++ b/tests/json/test_replace_with_other_struct.hpp @@ -2,37 +2,41 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_replace_with_other_struct() { - std::cout << "test_replace_with_other_struct" << std::endl; +namespace test_replace_with_other_struct { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"age", int> age; - }; +struct Person { + rfl::Field<"firstName", std::string> first_name; + rfl::Field<"lastName", std::string> last_name; + rfl::Field<"age", int> age; +}; - struct Employee { - rfl::Flatten person; - rfl::Field<"employer", std::string> employer; - rfl::Field<"salary", float> salary; - }; +struct Employee { + rfl::Flatten person; + rfl::Field<"employer", std::string> employer; + rfl::Field<"salary", float> salary; +}; - const auto employee = Employee{ - .person = - Person{.first_name = "Homer", .last_name = "Simpson", .age = 45}, - .employer = std::string("Mr. Burns"), - .salary = 60000.0}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto carl = Person{.first_name = "Carl", .last_name = "", .age = 45}; + const auto employee = Employee{ + .person = + Person{.first_name = "Homer", .last_name = "Simpson", .age = 45}, + .employer = std::string("Mr. Burns"), + .salary = 60000.0}; - const auto employee2 = rfl::replace(employee, carl); + const auto carl = Person{.first_name = "Carl", .last_name = "", .age = 45}; - write_and_read( - employee2, - R"({"firstName":"Carl","lastName":"","age":45,"employer":"Mr. Burns","salary":60000.0})"); + const auto employee2 = rfl::replace(employee, carl); + + write_and_read( + employee2, + R"({"firstName":"Carl","lastName":"","age":45,"employer":"Mr. Burns","salary":60000.0})"); } +} // namespace test_replace_with_other_struct diff --git a/tests/json/test_result.hpp b/tests/json/test_result.hpp index 6aaf6db2..dddc6576 100644 --- a/tests/json/test_result.hpp +++ b/tests/json/test_result.hpp @@ -1,20 +1,22 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_result() { - std::cout << "test_result" << std::endl; +namespace test_result { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::vector>> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::vector> children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const rfl::Result bart = Person{.first_name = "Bart"}; @@ -30,3 +32,4 @@ void test_result() { homer, R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson","children":[]},{"firstName":"Lisa","lastName":"Simpson","children":[]},{"error":"Some error occurred."}]})"); } +} // namespace test_result diff --git a/tests/json/test_save_load.hpp b/tests/json/test_save_load.hpp index f47dca18..72130d94 100644 --- a/tests/json/test_save_load.hpp +++ b/tests/json/test_save_load.hpp @@ -2,23 +2,26 @@ #include #include #include +#include #include #include -void test_save_load() { - std::cout << "test_save_load" << std::endl; +namespace test_save_load { - using Age = rfl::Validator, rfl::Maximum<130>>>; +using Age = rfl::Validator, rfl::Maximum<130>>>; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field<"age", Age> age; - rfl::Field<"email", rfl::Email> email; - rfl::Field<"children", std::vector> children; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; + Age age; + rfl::Email email; + std::vector children; +}; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; const auto bart = Person{.first_name = "Bart", .last_name = "Simpson", @@ -27,19 +30,17 @@ void test_save_load() { .email = "bart@simpson.com", .children = std::vector()}; - const auto lisa = Person{ - .first_name = "Lisa", - .last_name = "Simpson", - .birthday = "1987-04-19", - .age = 8, - .email = "lisa@simpson.com", - .children = rfl::default_value // same as std::vector() - }; + const auto lisa = Person{.first_name = "Lisa", + .last_name = "Simpson", + .birthday = "1987-04-19", + .age = 8, + .email = "lisa@simpson.com"}; - const auto maggie = - rfl::replace(lisa, rfl::make_field<"firstName">(std::string("Maggie")), - rfl::make_field<"email">(std::string("maggie@simpson.com")), - rfl::make_field<"age">(0)); + const auto maggie = Person{.first_name = "Maggie", + .last_name = "Simpson", + .birthday = "1987-04-19", + .age = 0, + .email = "maggie@simpson.com"}; const auto homer1 = Person{.first_name = "Homer", @@ -64,3 +65,4 @@ void test_save_load() { std::cout << "OK" << std::endl << std::endl; } +} // namespace test_save_load diff --git a/tests/json/test_set.hpp b/tests/json/test_set.hpp index 97e3834b..572f3f73 100644 --- a/tests/json/test_set.hpp +++ b/tests/json/test_set.hpp @@ -1,28 +1,31 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_set() { - std::cout << "test_set" << std::endl; +namespace test_set { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>( - std::set({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::set({"Bart", "Lisa", "Maggie"})); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":["Bart","Lisa","Maggie"]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":["Bart","Lisa","Maggie"]})"); } +} // namespace test_set diff --git a/tests/json/test_size.hpp b/tests/json/test_size.hpp index 74ef81de..cc5c9c3b 100644 --- a/tests/json/test_size.hpp +++ b/tests/json/test_size.hpp @@ -1,43 +1,34 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that the example in the README works as expected. -// It would be embarrassing if it didn't... -void test_size() { - std::cout << "test_size" << std::endl; +namespace test_size { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name; - rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday; - rfl::Field< - "children", - rfl::Validator, - rfl::Size, rfl::EqualTo<3>>>>> - children; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name; + rfl::Timestamp<"%Y-%m-%d"> birthday; + rfl::Validator, + rfl::Size, rfl::EqualTo<3>>>> + children; +}; - const auto bart = Person{.first_name = "Bart", - .last_name = "Simpson", - .birthday = "1987-04-19", - .children = std::vector()}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + + const auto bart = Person{ + .first_name = "Bart", .last_name = "Simpson", .birthday = "1987-04-19"}; const auto lisa = Person{ - .first_name = "Lisa", - .last_name = "Simpson", - .birthday = "1987-04-19", - .children = rfl::default_value // same as std::vector() - }; + .first_name = "Lisa", .last_name = "Simpson", .birthday = "1987-04-19"}; - // Returns a deep copy of the original object, - // replacing first_name. - const auto maggie = - rfl::replace(lisa, rfl::make_field<"firstName">(std::string("Maggie"))); + const auto maggie = Person{ + .first_name = "Maggie", .last_name = "Simpson", .birthday = "1987-04-19"}; const auto homer = Person{.first_name = "Homer", @@ -49,3 +40,4 @@ void test_size() { homer, R"({"firstName":"Homer","lastName":"Simpson","birthday":"1987-04-19","children":[{"firstName":"Bart","lastName":"Simpson","birthday":"1987-04-19","children":[]},{"firstName":"Lisa","lastName":"Simpson","birthday":"1987-04-19","children":[]},{"firstName":"Maggie","lastName":"Simpson","birthday":"1987-04-19","children":[]}]})"); } +} // namespace test_size diff --git a/tests/json/test_string_map.hpp b/tests/json/test_string_map.hpp index b06cabf8..628c5f7d 100644 --- a/tests/json/test_string_map.hpp +++ b/tests/json/test_string_map.hpp @@ -3,18 +3,21 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_string_map() { - std::cout << "test_string_map" << std::endl; +namespace test_string_map { +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - std::map> homer; - homer.insert( - std::make_pair("firstName", std::make_unique("Homer"))); - homer.insert( - std::make_pair("lastName", std::make_unique("Simpson"))); + std::map> homer; + homer.insert( + std::make_pair("firstName", std::make_unique("Homer"))); + homer.insert( + std::make_pair("lastName", std::make_unique("Simpson"))); - write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson"})"); + write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson"})"); } +} // namespace test_string_map diff --git a/tests/json/test_string_unordered_map.hpp b/tests/json/test_string_unordered_map.hpp index 54238ec2..d3796093 100644 --- a/tests/json/test_string_unordered_map.hpp +++ b/tests/json/test_string_unordered_map.hpp @@ -2,24 +2,27 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_string_unordered_map() { - std::cout << "test_string_unordered_map" << std::endl; +namespace test_string_unordered_map { +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - using Map = std::unordered_map>; - Map homer; - homer.insert( - std::make_pair("firstName", std::make_unique("Homer"))); - homer.insert( - std::make_pair("lastName", std::make_unique("Simpson"))); + using Map = std::unordered_map>; + Map homer; + homer.insert( + std::make_pair("firstName", std::make_unique("Homer"))); + homer.insert( + std::make_pair("lastName", std::make_unique("Simpson"))); - // Unordered maps are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::json::write(homer); - const auto homer2 = rfl::json::read(json_string); - std::cout << "OK" << std::endl << std::endl; + // Unordered maps are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::json::write(homer); + const auto homer2 = rfl::json::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_string_unordered_map diff --git a/tests/json/test_tagged_union.hpp b/tests/json/test_tagged_union.hpp index aa59f398..c8cf5f78 100644 --- a/tests/json/test_tagged_union.hpp +++ b/tests/json/test_tagged_union.hpp @@ -2,35 +2,34 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_tagged_union() { - std::cout << "test_tagged_union" << std::endl; +namespace test_tagged_union { - struct Circle { - rfl::Field<"shape", rfl::Literal<"Circle">> shape = rfl::default_value; - rfl::Field<"radius", double> radius; - }; +struct Circle { + double radius; +}; - struct Rectangle { - rfl::Field<"shape", rfl::Literal<"Rectangle">> shape = - rfl::default_value; - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; - }; +struct Rectangle { + double height; + double width; +}; - struct Square { - rfl::Field<"shape", rfl::Literal<"Square">> shape = rfl::default_value; - rfl::Field<"width", double> width; - }; +struct Square { + double width; +}; - using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; +using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; - const Shapes r = Rectangle{.height = 10, .width = 5}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read(r, R"({"shape":"Rectangle","height":10.0,"width":5.0})"); + const Shapes r = Rectangle{.height = 10, .width = 5}; + + write_and_read(r, R"({"shape":"Rectangle","height":10.0,"width":5.0})"); } +} // namespace test_tagged_union diff --git a/tests/json/test_tagged_union2.hpp b/tests/json/test_tagged_union2.hpp new file mode 100644 index 00000000..597016c5 --- /dev/null +++ b/tests/json/test_tagged_union2.hpp @@ -0,0 +1,38 @@ +#include +#include +#include +#include +#include +#include +#include + +#include "write_and_read.hpp" + +namespace test_tagged_union2 { + +struct Circle { + using Tag = rfl::Literal<"circle", "Circle">; + rfl::Field<"radius", double> radius; +}; + +struct Rectangle { + using Tag = rfl::Literal<"rectangle", "Rectangle">; + rfl::Field<"height", double> height; + rfl::Field<"width", double> width; +}; + +struct Square { + using Tag = rfl::Literal<"square", "Square">; + rfl::Field<"width", double> width; +}; + +using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; + +void test() { + std::cout << std::source_location::current().function_name() << std::endl; + + const Shapes r = Rectangle{.height = 10, .width = 5}; + + write_and_read(r, R"({"shape":"rectangle","height":10.0,"width":5.0})"); +} +} // namespace test_tagged_union2 diff --git a/tests/json/test_timestamp.hpp b/tests/json/test_timestamp.hpp index 67b0866b..62f5a0c6 100644 --- a/tests/json/test_timestamp.hpp +++ b/tests/json/test_timestamp.hpp @@ -2,32 +2,36 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_timestamp() { - std::cout << "test_timestamp" << std::endl; +namespace test_timestamp { - using TS = rfl::Timestamp<"%Y-%m-%d">; +using TS = rfl::Timestamp<"%Y-%m-%d">; - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"birthday", TS> birthday; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + TS birthday; +}; - const auto result = TS::from_string("nonsense"); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - if (result) { - std::cout << "Failed: Expected an error, but got none." << std::endl; - return; - } + const auto result = TS::from_string("nonsense"); - const auto bart = Person{.first_name = "Bart", .birthday = "1987-04-19"}; + if (result) { + std::cout << "Failed: Expected an error, but got none." << std::endl; + return; + } - write_and_read( - bart, - R"({"firstName":"Bart","lastName":"Simpson","birthday":"1987-04-19"})"); + const auto bart = Person{.first_name = "Bart", .birthday = "1987-04-19"}; + + write_and_read( + bart, + R"({"firstName":"Bart","lastName":"Simpson","birthday":"1987-04-19"})"); } +} // namespace test_timestamp diff --git a/tests/json/test_unique_ptr.hpp b/tests/json/test_unique_ptr.hpp index 54a38543..c36e2d92 100644 --- a/tests/json/test_unique_ptr.hpp +++ b/tests/json/test_unique_ptr.hpp @@ -2,30 +2,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unique_ptr() { - std::cout << "test_unique_ptr" << std::endl; +namespace test_unique_ptr { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> children = - rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->emplace_back(Person{.first_name = "Bart"}); - children->emplace_back(Person{.first_name = "Lisa"}); - children->emplace_back(Person{.first_name = "Maggie"}); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->emplace_back(Person{.first_name = "Bart"}); + children->emplace_back(Person{.first_name = "Lisa"}); + children->emplace_back(Person{.first_name = "Maggie"}); - write_and_read( - homer, - R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + write_and_read( + homer, + R"({"firstName":"Homer","lastName":"Simpson","children":[{"firstName":"Bart","lastName":"Simpson"},{"firstName":"Lisa","lastName":"Simpson"},{"firstName":"Maggie","lastName":"Simpson"}]})"); } +} // namespace test_unique_ptr diff --git a/tests/json/test_unique_ptr2.hpp b/tests/json/test_unique_ptr2.hpp index 4fab614c..085db6aa 100644 --- a/tests/json/test_unique_ptr2.hpp +++ b/tests/json/test_unique_ptr2.hpp @@ -2,44 +2,48 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unique_ptr2() { - std::cout << "test_unique_ptr2" << std::endl; +namespace test_unique_ptr2 { - struct DecisionTree { - struct Leaf { - rfl::Field<"type", rfl::Literal<"Leaf">> type = rfl::default_value; - rfl::Field<"value", double> value; - }; +struct DecisionTree { + struct Leaf { + using Tag = rfl::Literal<"Leaf">; + double value; + }; - struct Node { - rfl::Field<"type", rfl::Literal<"Node">> type = rfl::default_value; - rfl::Field<"criticalValue", double> critical_value; - rfl::Field<"left", std::unique_ptr> lesser; - rfl::Field<"right", std::unique_ptr> greater; - }; + struct Node { + using Tag = rfl::Literal<"Node">; + rfl::Rename<"criticalValue", double> critical_value; + std::unique_ptr lesser; + std::unique_ptr greater; + }; - using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; + using LeafOrNode = rfl::TaggedUnion<"type", Leaf, Node>; - rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; - }; + rfl::Field<"leafOrNode", LeafOrNode> leaf_or_node; +}; - auto leaf1 = DecisionTree::Leaf{.value = 3.0}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - auto leaf2 = DecisionTree::Leaf{.value = 5.0}; + auto leaf1 = DecisionTree::Leaf{.value = 3.0}; - auto node = DecisionTree::Node{ - .critical_value = 10.0, - .lesser = std::make_unique(DecisionTree{leaf1}), - .greater = std::make_unique(DecisionTree{leaf2})}; + auto leaf2 = DecisionTree::Leaf{.value = 5.0}; - const DecisionTree tree{.leaf_or_node = std::move(node)}; + auto node = DecisionTree::Node{ + .critical_value = 10.0, + .lesser = std::make_unique(DecisionTree{leaf1}), + .greater = std::make_unique(DecisionTree{leaf2})}; - write_and_read( - tree, - R"({"leafOrNode":{"type":"Node","criticalValue":10.0,"left":{"leafOrNode":{"type":"Leaf","value":3.0}},"right":{"leafOrNode":{"type":"Leaf","value":5.0}}}})"); + const DecisionTree tree{.leaf_or_node = std::move(node)}; + + write_and_read( + tree, + R"({"leafOrNode":{"type":"Node","criticalValue":10.0,"lesser":{"leafOrNode":{"type":"Leaf","value":3.0}},"greater":{"leafOrNode":{"type":"Leaf","value":5.0}}}})"); } +} // namespace test_unique_ptr2 diff --git a/tests/json/test_unordered_map.hpp b/tests/json/test_unordered_map.hpp index b91940b1..bc2fccd0 100644 --- a/tests/json/test_unordered_map.hpp +++ b/tests/json/test_unordered_map.hpp @@ -1,32 +1,35 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unordered_map() { - std::cout << "test_unordered_map" << std::endl; +namespace test_unordered_map { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - // Unordered maps are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::json::write(homer); - const auto homer2 = rfl::json::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered maps are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::json::write(homer); + const auto homer2 = rfl::json::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_map diff --git a/tests/json/test_unordered_multimap.hpp b/tests/json/test_unordered_multimap.hpp index 757118df..7662d0ee 100644 --- a/tests/json/test_unordered_multimap.hpp +++ b/tests/json/test_unordered_multimap.hpp @@ -2,32 +2,34 @@ #include #include #include +#include #include #include "write_and_read.hpp" -void test_unordered_multimap() { - std::cout << "test_unordered_multimap" << std::endl; +namespace test_unordered_multimap { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", - std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>(); - children->insert(std::make_pair(1, Person{.first_name = "Bart"})); - children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); - children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>(); + children->insert(std::make_pair(1, Person{.first_name = "Bart"})); + children->insert(std::make_pair(2, Person{.first_name = "Lisa"})); + children->insert(std::make_pair(3, Person{.first_name = "Maggie"})); - // Unordered maps are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::json::write(homer); - const auto homer2 = rfl::json::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered maps are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::json::write(homer); + const auto homer2 = rfl::json::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_multimap diff --git a/tests/json/test_unordered_multiset.hpp b/tests/json/test_unordered_multiset.hpp index 11591da4..40ce4401 100644 --- a/tests/json/test_unordered_multiset.hpp +++ b/tests/json/test_unordered_multiset.hpp @@ -1,31 +1,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unordered_multiset() { - std::cout << "test_unordered_multiset" << std::endl; +namespace test_unordered_multiset { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", - std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>( - std::unordered_multiset({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::unordered_multiset({"Bart", "Lisa", "Maggie"})); - // Unordered multisets are unpredictable. We therefore only make sure that - // this compiles. - const auto json_string = rfl::json::write(homer); - const auto homer2 = rfl::json::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered multisets are unpredictable. We therefore only make sure that + // this compiles. + const auto json_string = rfl::json::write(homer); + const auto homer2 = rfl::json::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_multiset diff --git a/tests/json/test_unordered_set.hpp b/tests/json/test_unordered_set.hpp index f4602a64..0cea2752 100644 --- a/tests/json/test_unordered_set.hpp +++ b/tests/json/test_unordered_set.hpp @@ -1,30 +1,33 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -void test_unordered_set() { - std::cout << "test_unordered_set" << std::endl; +namespace test_unordered_set { - struct Person { - rfl::Field<"firstName", std::string> first_name; - rfl::Field<"lastName", std::string> last_name = "Simpson"; - rfl::Field<"children", std::unique_ptr>> - children = rfl::default_value; - }; +struct Person { + rfl::Rename<"firstName", std::string> first_name; + rfl::Rename<"lastName", std::string> last_name = "Simpson"; + std::unique_ptr> children; +}; - auto children = std::make_unique>( - std::unordered_set({"Bart", "Lisa", "Maggie"})); +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - const auto homer = - Person{.first_name = "Homer", .children = std::move(children)}; + auto children = std::make_unique>( + std::unordered_set({"Bart", "Lisa", "Maggie"})); - // Unordered sets are unpredictable. We therefore only make sure that this - // compiles. - const auto json_string = rfl::json::write(homer); - const auto homer2 = rfl::json::read(json_string); - std::cout << "OK" << std::endl << std::endl; + const auto homer = + Person{.first_name = "Homer", .children = std::move(children)}; + + // Unordered sets are unpredictable. We therefore only make sure that this + // compiles. + const auto json_string = rfl::json::write(homer); + const auto homer2 = rfl::json::read(json_string); + std::cout << "OK" << std::endl << std::endl; } +} // namespace test_unordered_set diff --git a/tests/json/test_variant.hpp b/tests/json/test_variant.hpp index 0eeab501..24bdabc1 100644 --- a/tests/json/test_variant.hpp +++ b/tests/json/test_variant.hpp @@ -2,31 +2,34 @@ #include #include #include +#include #include #include #include "write_and_read.hpp" -// Makes sure that we can set default values. -void test_variant() { - std::cout << "test_variant" << std::endl; +namespace test_variant { - struct Circle { - rfl::Field<"radius", double> radius; - }; +struct Circle { + double radius; +}; - struct Rectangle { - rfl::Field<"height", double> height; - rfl::Field<"width", double> width; - }; +struct Rectangle { + double height; + double width; +}; - struct Square { - rfl::Field<"width", double> width; - }; +struct Square { + double width; +}; - using Shapes = std::variant>; +using Shapes = std::variant>; - const Shapes r = Rectangle{.height = 10, .width = 5}; +void test() { + std::cout << std::source_location::current().function_name() << std::endl; - write_and_read(r, R"({"height":10.0,"width":5.0})"); + const Shapes r = Rectangle{.height = 10, .width = 5}; + + write_and_read(r, R"({"height":10.0,"width":5.0})"); } +} // namespace test_variant diff --git a/tests/json/tests.cpp b/tests/json/tests.cpp index 081360dc..ab6796ab 100644 --- a/tests/json/tests.cpp +++ b/tests/json/tests.cpp @@ -19,7 +19,6 @@ #include "test_field_variant.hpp" #include "test_flatten.hpp" #include "test_flatten_anonymous.hpp" -#include "test_flatten_tuple.hpp" #include "test_forward_list.hpp" #include "test_list.hpp" #include "test_literal.hpp" @@ -44,6 +43,7 @@ #include "test_string_map.hpp" #include "test_string_unordered_map.hpp" #include "test_tagged_union.hpp" +#include "test_tagged_union2.hpp" #include "test_timestamp.hpp" #include "test_unique_ptr.hpp" #include "test_unique_ptr2.hpp" @@ -54,65 +54,65 @@ #include "test_variant.hpp" int main() { - test_readme_example(); - test_default_values(); - test_optional_fields(); - test_unique_ptr(); - test_unique_ptr2(); - test_literal(); - test_variant(); - test_tagged_union(); - test_field_variant(); - test_ref(); - test_box(); - test_array(); - test_timestamp(); - test_flatten(); - test_flatten_anonymous(); - test_flatten_tuple(); - test_deque(); - test_forward_list(); - test_list(); - test_map(); - test_map_with_key_validation(); - test_unordered_map(); - test_set(); - test_unordered_set(); - test_multimap(); - test_unordered_multimap(); - test_multiset(); - test_unordered_multiset(); - test_string_map(); - test_string_unordered_map(); - test_alphanumeric_map(); - test_alphanumeric_unordered_map(); - test_literal_map(); - test_literal_unordered_map(); - test_error_messages(); - test_result(); - test_anonymous_fields(); - test_monster_example(); + test_readme_example::test(); + test_default_values::test(); + test_optional_fields::test(); + test_unique_ptr::test(); + test_unique_ptr2::test(); + test_literal::test(); + test_variant::test(); + test_tagged_union::test(); + test_tagged_union2::test(); + test_field_variant::test(); + test_ref::test(); + test_box::test(); + test_array::test(); + test_timestamp::test(); + test_flatten::test(); + test_flatten_anonymous::test(); + test_deque::test(); + test_forward_list::test(); + test_list::test(); + test_map::test(); + test_map_with_key_validation::test(); + test_unordered_map::test(); + test_set::test(); + test_unordered_set::test(); + test_multimap::test(); + test_unordered_multimap::test(); + test_multiset::test(); + test_unordered_multiset::test(); + test_string_map::test(); + test_string_unordered_map::test(); + test_alphanumeric_map::test(); + test_alphanumeric_unordered_map::test(); + test_literal_map::test(); + test_literal_unordered_map::test(); + test_error_messages::test(); + test_result::test(); + test_anonymous_fields::test(); + test_monster_example::test(); - test_custom_class1(); - test_custom_class2(); - test_custom_class3(); - test_custom_class4(); + test_custom_class1::test(); + test_custom_class2::test(); + test_custom_class3::test(); + test_custom_class4::test(); - test_replace(); - test_replace_flatten(); - test_replace_with_other_struct(); - test_as(); - test_as_flatten(); + test_replace::test(); + test_replace_flatten::test(); + test_replace_with_other_struct::test(); + test_as::test(); + test_as_flatten::test(); - test_custom_constructor(); + test_custom_constructor::test(); - test_all_of(); - test_any_of(); - test_one_of(); - test_email(); - test_size(); + test_all_of::test(); + test_any_of::test(); + test_one_of::test(); + test_email::test(); + test_size::test(); - test_save_load(); + test_save_load::test(); return 0; }