Boost logo

Boost :

Subject: [boost] [modularization] Extract xml_archive from serialization
From: Stephen Kelly (hello_at_[hidden])
Date: 2014-09-16 07:44:28

Hi there,

The biggest single problem of coupling in boost comes from the spirit
dependency in the serialization library. This makes serialization itself
very (and needlessly) heavy:

Spirit is used only by the xml archiving classes.

I recommend extracting an xml_archive library from serialization. That way,
serialization no longer depends on spirit, which is already an improvement:

Further, the serialization classes for boost::variant and boost::array are
in the serialization library. This is not appropriate, as the serialization
classes for all other types are in the libraries providing the types. Move
the serialization classes to those libraries.

 mkdir ../variant/include/boost/serialization
 mv include/boost/serialization/variant.hpp

 mkdir ../array/include/boost/serialization
 mv include/boost/serialization/array.hpp

This is a large improvement:

There is more that can be done. These things can be done now. I recommend
doing them.



Boost list run by bdawes at, gregod at, cpdaniel at, john at