We are using boost::object_pool to allocate class objects of certain types. After this the complete class hierarchy is serialized and then deserialized by a different process.
At time of deserialization due to dynamic memory allocation we are seeing a lot of memory fragmentation.
How can I enable pools to be used while creating deserialized objects as well?