11 lines
324 B
C++
11 lines
324 B
C++
#include <structive/property/property.hpp>
|
|
struct Device { int value{}; };
|
|
int main() {
|
|
auto schema = structive::object<Device>(
|
|
structive::field<&Device::value>(
|
|
structive::key<"value">,
|
|
structive::unit<"first">,
|
|
structive::unit<"second">));
|
|
static_cast<void>(schema);
|
|
}
|