[Serialization] getting version of items stored in STL collection

I'm converting parts of a program to use boost::shared_ptr. I have a vector of pointers to objects std::vector

I have to say it's very hard for me to follow all this. For most standard collections such as std::vector<T> the serialization library takes care of the version of T. There are only a few exceptions to shis - such as vectorstd::string etc. So everything should "just work" Robert Ramey

On Thu, Jul 21, 2011 at 4:41 AM, Robert Ramey
I have to say it's very hard for me to follow all this.
For most standard collections such as std::vector<T> the serialization library takes care of the version of T. There are only a few exceptions to shis - such as vectorstd::string etc. So everything should "just work"
Robert,
Thanks for replying and apologies the explanation wasn't good. I think the
solution is to introduce into the MFC Doc class a member variable m_Version
and load either std::vector
participants (2)
-
cc caprani
-
Robert Ramey