niXman / yas

Yet Another Serialization
730 stars 95 forks source link

compile error :when serialize a struct object with 20 parameters #124

Closed Darwinnpos closed 1 year ago

Darwinnpos commented 1 year ago

struct Bar { int a1; int a2; int a2; int a2;int a2;

template<typename Archive>
void serialize(Archive &ar) {
    ar & YAS_OBJECT("Bar", ("s", m_s), ("foo", m_foo));
}

};