|
Boost Users : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-08-01 07:28:22
"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<class Archive, class T>
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net