DU Results -

Source patches

du1examplepolicy.hpp

30,33c30,33
< 	template< typename X, typename Y>
< 	static void make(X && x, Y && y) {
< 		serialize::string_attribute(x, y, "B1", [](auto && m) -> auto && { return m->attrB1; });
< 		serialize::enum_attribute< enumpolicyE>(x, y, "B2", [](auto && m) -> auto && { return m->attrB2; });
---
> 	template< typename X>
> 	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; });
43,47c43,47
< 	template< typename X, typename Y>
< 	static void make(X && x, Y && y) {
< 		serialize::int_attribute(x, y, "A1", [](auto && m) { return m->get_A1(); }, [](auto && m, auto && v) { m->set_A1(v); });
< 		serialize::string_attribute(x, y, "A2", [](auto && m) -> auto && { return m->fA2(); });
< 		serialize::struct_sequence_attribute< structpolicyB>(x, y, "A3", [](auto && m) -> auto && { return m->fA3(); });
---
> 	template< typename X>
> 	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

du1test.cpp

d:\users\bednarek\@svn\nprg051\studenti\20162\pocatko_michal_50246985\du1serialize.hpp(92): warning C4297: 'serialize::LoadJsonParser::~LoadJsonParser': function assumed not to throw an exception but does
d:\users\bednarek\@svn\nprg051\studenti\20162\pocatko_michal_50246985\du1serialize.hpp(92): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification

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