Skip to content

Structs should honor rfl::Skip. #50

@jadamwilson2

Description

@jadamwilson2

I would like to attach additional fields to a struct that cannot be serialized or written to a database. For example, I have one table with a number of rows with foreign keys to another table. I would like to load one table, store a vector or map of references to the sub entries. An example might look like:

struct Car {
...
};

struct Person {
  std::string name;
  rfl::Skip<std::vector<Cars>> owned_cars;
};

When loading the data, I want to manually populate the owned_cars field, but it should not be serialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions