如何使用c ++ 11内置库进行序列化 [英] How to use c++11 builtin library for serialization

查看:108
本文介绍了如何使用c ++ 11内置库进行序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是序列化的新手。

我想知道c ++ 11的新功能,例如type-trait和functional上存在的功能是否有助于我使我的序列化结构保存并加载从文件不使用任何额外的库

任何教程,评论和代码将不胜感激。



我尝试了什么:



我搜索找到合适的序列化库,我使用快速json,boost和谷物做了一点。

I am new in serialization.
I want to know if new feature of c++11 such as what exists on type-trait and functional help me to make my serialization struct and save and load it to and from file without using any extra library.
any tutorial ,comment and code would be appreciated.

What I have tried:

I searched to find suitable serialization library and I worked a little with quick json, boost and cereal.

推荐答案

据我所知, C ++ 11 中没有内置的序列化功能。

我想一些新的语言(和库)功能可以帮助你编写序列化代码,但我不知道是否有任何特别介绍使序列化更容易。
As far as I know there is no built-in serialization feature in C++11.
I guess some new language (and library) features may help you in writing serialization code, however I'm not aware of any of them specifically introduced to make serialization easier.


这篇关于如何使用c ++ 11内置库进行序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆