Search code examples
c++boostboost-serialization

Boost serialization version information


Is there any way to remove the extra 6 bytes that are put in the begin of the serialization data when serializing with Boost Serialization ? I just want to use the serialization mechanism, I don't want any version, object tracking or any other header information.


Solution

  • I solved my problem using the implementation level:

    BOOST_CLASS_IMPLEMENTATION(MyClass, boost::serialization::object_serializable);
    

    By doing this, the serialization will not include the version in front of the raw serialized data.