Is it possible to serialize and deserialize a class in C++?

前端 未结 13 2565
我寻月下人不归
我寻月下人不归 2020-11-22 02:18

Is it possible to serialize and deserialize a class in C++?

I\'ve been using Java for 3 years now, and serialization / deserialization is fairly trivial in that lang

相关标签:
13条回答
  • 2020-11-22 03:01

    I realize this is an old post but it's one of the first that comes up when searching for c++ serialization.

    I encourage anyone who has access to C++11 to take a look at cereal, a C++11 header only library for serialization that supports binary, JSON, and XML out of the box. cereal was designed to be easy to extend and use and has a similar syntax to Boost.

    0 讨论(0)
提交回复
热议问题