DU Results -

Source patches

du1examplepolicy.hpp

31,33c31,33
< 	static void make(X && objectStreamPair) {
< 		serialize::string_attribute(objectStreamPair, "B1", [](auto && object) -> auto && { return object->attrB1; });
< 		serialize::enum_attribute< enumpolicyE>(objectStreamPair, "B2", [](auto && object) -> auto && { return object->attrB2; });
---
> 	static void make(X && x) {
> 		serialize::string_attribute(x, "B1", [](auto && m) -> auto && { return m->attrB1; });
> 		serialize::enum_attribute< enumpolicyE>(x, "B2", [](auto && m) -> auto && { return m->attrB2; });
44,47c44,47
< 	static void make(X && objectStreamPair) {
< 		serialize::int_attribute(objectStreamPair, "A1", [](auto && object) { return object->get_A1(); }, [](auto && object, auto && value) { object->set_A1(value); });
< 		serialize::string_attribute(objectStreamPair, "A2", [](auto && object) -> auto && { return object->fA2(); });
< 		serialize::struct_sequence_attribute< structpolicyB>(objectStreamPair, "A3", [](auto && object) -> auto && { return object->fA3(); });
---
> 	static void make(X && x) {
> 		serialize::int_attribute(x, "A1", [](auto && m) { return m->get_A1(); }, [](auto && m, auto && v) { m->set_A1(v); });
> 		serialize::string_attribute(x, "A2", [](auto && m) -> auto && { return m->fA2(); });
> 		serialize::struct_sequence_attribute< structpolicyB>(x, "A3", [](auto && m) -> auto && { return m->fA3(); });

Flex error reports

C++ error reports

Linker error reports

Run output diffs

empty

1c1
< { "A1":100, "A2":"Hello", "A3":[ { "B1":"One", "B2":"X" }, { "B1":"Two", "B2":"Y" }, { "B1":"Three", "B2":"Z" } ] }
\ No newline at end of file
---
> {"A1":100,"A2":"Hello","A3":[{"B1":"One","B2":"X"},{"B1":"Two","B2":"Y"},{"B1":"Three","B2":"Z"}]}
\ No newline at end of file