开发者

Does there exist any serialization library for c++ that is as easy as Google Gson/XStream for java?

开发者 https://www.devze.com 2023-01-20 08:28 出处:网络
It seems like every library I\'ve ever seen recommended doesn\'t offer an api as easy as this. MyClass* instance = (MyClass*)SerializationUtility.serialize(someString);

It seems like every library I've ever seen recommended doesn't offer an api as easy as this.

MyClass* instance = (MyClass*)SerializationUtility.serialize(someString);

Has anyone heard of开发者_开发问答 something this easy for c++? In hava there are a couple of libraries that are so easy to use for converting text into objects and objects into text. This is one of those "solved problems" things, which is why it surprises me that there is no buzz around a c++ library (that I have heard of.)


Look at Boost.Serialization.

8th result when you Google "c++ serialization". =/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号