10 lines
352 B
C++
10 lines
352 B
C++
#include <structive/property/property.hpp>
|
|
struct Duplicate_Key {
|
|
int left{};
|
|
int right{};
|
|
};
|
|
int main() {
|
|
auto schema = structive::object<Duplicate_Key>(structive::field<&Duplicate_Key::left>(structive::key<"value">), structive::field<&Duplicate_Key::right>(structive::key<"value">));
|
|
return static_cast<int>(schema.property_count);
|
|
}
|