<div class="gmail_quote">On Thu, Jul 21, 2011 at 4:41 AM, Robert Ramey <span dir="ltr">&lt;<a href="mailto:ramey@rrsd.com">ramey@rrsd.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have to say it&#39;s very hard for me to follow all this.<br>
<br>
For most standard collections such as std::vector&lt;T&gt; the serialization<br>
library takes care of the version of T.  There are only a few exceptions to<br>
shis - such as vector&lt;std::string&gt; etc.  So everything should &quot;just work&quot;<br>
<br></blockquote></div><br>Robert,<br><br>Thanks for replying and apologies the explanation wasn&#39;t good. I think the solution is to introduce into the MFC Doc class a member variable m_Version and load either std::vector&lt;T*&gt;<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div> or std::vector&lt; shared_ptr&lt;T&gt; &gt; as appropriate. Trying to read one line and determine the item_version is probably silly.<br><br>This issue is closely related to my other post today (<font size="2"><span id=":6n" class="hP">[Boost-users][serialization] Memory leaks even with shared_ptrs)</span></font> and I&#39;d be grateful if you were able to give that a look. And a million thanks for the library - it really is an incredibly useful tool.<br>
<br>Colin<br>

