Search code examples
c++serializationboostarchive

Creating own implementation of Boost::Archive


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.


Solution

  • 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