16 Jan
2006
16 Jan
'06
8:33 p.m.
Hi, If see from the serialization documentation that if I serialize a pointer more than once, only one instance will appear in the archive. However, what about static member variables? Will they only be serialized once, even if I serialize multiple objects of the class type? e.g. class foo { private: int i; static int j; friend class boost::serialization::access; template<class Archive> void serialize(Archive& ar, const unsigned int version) { ar & i; ar & j; // Will j be serialized multiple times, i.e. once per foo instance? } }; Thanks, Joseph -- http://www.cs.nyu.edu/~turian/