[odb-users] Relationships and constraints without pointers

Troy Heron troy.heron at hixxy.org
Wed Jan 23 02:21:52 EST 2019


Hello,

Let's say I have these 2 hypothetical objects:

struct Object1
{
    std::set<std::string> values;
};

struct Object2
{
    std::set<std::string> values;
};

Is it possible for me to create a relationship and constraints using
pragmas and no additional objects or pointers such that the values in
Object2::values can only be those in Object1::values and that
Object2::values is updated when a value is removed from Object1::values or
when the value is changed?

Regards,
Troy


More information about the odb-users mailing list