I would like to introspect on an third-party ADT which defines pairs of getters/setters for access to "properties" of the class. For example:
struct Echo {
float mix; // read-only, don't ask why.
void set_mix(float mix);
};
I would like to write:
BOOST_HANA_ADAPT_ADT(Echo,
(mix,
[] (const auto& self) { return self.mix; },
[] (auto& self, float x) { self.set_mix(x); })
);
Is this possible?