-
Notifications
You must be signed in to change notification settings - Fork 148
Description
I noticed that serialization code is missing for boost::container::vector
and boost::container::string
and probably more of the Boost containers. Boost should be able to serialize ideally all or at least most of its own containers.
The straight forward thing would be to implement serialization code for each individual container, but that's a maintenance burden and it does not exploit the fact that many containers adhere to a standard interface.
With a bit of concept checking a templated generic serialization code for containers could be written that adhere to the vector interface; similar for string, list, and map. The current code for std::vector, std::string, std::map, std::list could be turned into such a generic code. The concept checking would implement a form of duck-typing.