incompatible serialization format of boost::property_tree between 1.44 and 1.48
Hi, Several days ago I upgrade boost from 1.44 to 1.48 and I found that serialization format is not compatible for node of 'char' type. The serialization format of a "char a=0" node in boost1.44 is: { "a": "\0" } while in boost1.48 is: { "a": "\u0000" } For the format of boost1.44, read_json of boost1.48 will throw exception which complains unexpected escaped slash. Is this intended behavior or a bug or my misuse? Any suggestions is welcomed. Regards, Ivan
kpzhang wrote:
Hi, Several days ago I upgrade boost from 1.44 to 1.48 and I found that serialization format is not compatible for node of 'char' type.
The serialization format of a "char a=0" node in boost1.44 is: { "a": "\0" } while in boost1.48 is: { "a": "\u0000" }
For the format of boost1.44, read_json of boost1.48 will throw exception which complains unexpected escaped slash.
Is this intended behavior or a bug or my misuse? Any suggestions is welcomed.
Regards, Ivan
I would be curious to know: os compiler type of archive used. Robert Ramey
participants (2)
-
kpzhang
-
Robert Ramey