#include using namespace structive; struct Device {}; int main() { auto schema = object( computed_property(depends_on_keys<"right">, [](const auto& view) { return view.template get<"right">(); }, key<"left">), computed_property(depends_on_keys<"left">, [](const auto& view) { return view.template get<"left">(); }, key<"right">) ); static_cast(schema); }