Boost C++ Libraries: Ticket #4981: Boost.Archive No Tracking does nothing https://svn.boost.org/trac10/ticket/4981 <p> I see from a very old e-mail that the no_tracking option for archives was planned: </p> <p> <a class="ext-link" href="http://lists.boost.org/Archives/boost/2005/03/81549.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2005/03/81549.php</a> </p> <p> And then I can see work was stopped. The author of this e-mail says it was for "multiple reasons he can't remember." </p> <p> <a class="ext-link" href="http://lists.boost.org/Archives/boost/2006/04/103291.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2006/04/103291.php</a> </p> <p> This feature would be very helpful for those who need to serialize a pointer off the stack. The attached code sample introduces a situation where the no_tracking option would be helpful. </p> <p> Attached is a patch that enabled the use of boost::archive::no_tracking as a flag for the archive. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4981 Trac 1.4.3 jsternberg <jonathansternberg@…> Mon, 13 Dec 2010 23:05:20 GMT attachment set https://svn.boost.org/trac10/ticket/4981 https://svn.boost.org/trac10/ticket/4981 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">archive-tracking.patch</span> </li> </ul> <p> patch to enable no_tracking option </p> Ticket jsternberg <jonathansternberg@…> Mon, 13 Dec 2010 23:05:50 GMT attachment set https://svn.boost.org/trac10/ticket/4981 https://svn.boost.org/trac10/ticket/4981 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">serialize.cpp</span> </li> </ul> <p> example showing the problem </p> Ticket Vicente Botet <vicente.botet@…> Tue, 14 Dec 2010 20:05:17 GMT type changed https://svn.boost.org/trac10/ticket/4981#comment:1 https://svn.boost.org/trac10/ticket/4981#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Feature Requests</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Robert Ramey Wed, 15 Dec 2010 19:34:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4981#comment:2 https://svn.boost.org/trac10/ticket/4981#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> For serializing a pointer off the stack, one might better just de-reference the pointer and just serialize the object: e.g. </p> <p> my_object *p = ... </p> <p> ar &amp; *p </p> <p> The fix suggested would need to be looked at with excruciating detail to be sure it doesn't break anything else. Not a good idea. </p> <p> I am aware of the need to be able to suppress tracking on a case by case basis but I don't think this is a good way to do it. </p> <p> Robert Ramey </p> Ticket