Creating own implementation of Boost::Archive

瘦欲@ 提交于 2021-02-17 19:22:06

问题


I'm currently creating a concept which uses Boost::Serialization and which needs to implement its own Boost::Archive cause the data has to be serialized in a certain way.

There is documentation about implementing custom archives in the documentation: http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/index.html

But I'm curious if there are any other (reallife) examples anywhere on the net. I couldn't find any. Perhaps someone could point me to a source or article.


回答1:


Example implementing Log Archive:
http://www.boost.org/doc/libs/1_44_0/libs/serialization/doc/derivation.html

Portable Binary archive:
http://www.systomath.biz/include/Boost-1_35/libs/serialization/doc/derivation.html#portable_archives



来源:https://stackoverflow.com/questions/3921151/creating-own-implementation-of-boostarchive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!