I'm trying to write generic boost::serialization functions for
boost:indexed_set and I'm in a bit over my head. The serialization docs
say to use something like the following for generic types:
template
"Jedediah Smith" wrote:
I'm trying to write generic boost::serialization functions for boost:indexed_set and I'm in a bit over my head. The serialization docs say to use something like the following for generic types:
template
inline void save( Archive & ar, const std::auto_ptr<T> &t, const unsigned int file_version ){ ar << t.get(); } This is a non-intrusive save function for std::auto_ptr. The tricky thing is that the template parameters for indexed_set are much more complicated and the default index may either be regular (set-like) or sequenced (list-like). How would this be handled?
I think serialization support will be added after 1.32. (Joaqin thinks it is feasible, though). /Pavel
participants (2)
-
Jedediah Smith
-
Pavel Vozenilek