c++ - How can i find out the difference between two thrift structs? -
i have 2 thrift struct of same type.
struct nestedobject { 1: string name 2: i64 version } struct object { 1: string name 2: i64 version 3: nestedobject object; 4: xyz ..; 5: cbde ..; // , tons of fields }
i have object , object b , want find fields differ between 2 objects , b? wouldn't want write simple comparison function check a.name == b.name && a.object.name == b.object.name list can grow indefinitely.
Comments
Post a Comment