18 Dec
2005
18 Dec
'05
8 p.m.
No one has ever thought of this before. I don't see a problem doing it in the normal way. However, there would be a couple of things to keep in mind: The tracking behaviour. I would recommend that the particular vector be marked as tracked. That way you'll only get one copy of the static vector in the archive. Of course if something like std::vector<int> then this approach would have some disagreable side effects. So I would recommend deriving a class from std::vector<int> and assigning track_always to it. Robert Ramey Merrill Cornish wrote:
I have a class with a static STL vector as a member. The elements of this vector are themselves serializable classes. Can this vector be serialized? Is so, how?
Merrill