问题
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