Boost logo

Boost Users :

From: Jedediah Smith (jedediah_at_[hidden])
Date: 2004-07-31 16:52:27

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?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at