#include #include struct Consumer_Device : structive::Property_Object { int value{1}; }; template <> struct structive::Type_Descriptor { static auto get() { return object(field<&Consumer_Device::value>(key<"value">, presentation::label<"Value">)); } }; int main() { Consumer_Device device; device.write<&Consumer_Device::value>(2); return device.read<&Consumer_Device::value>() == 2 ? 0 : 1; }