Boost C++ Libraries: Ticket #453: polymorphic i/o archives and stl containers problem https://svn.boost.org/trac10/ticket/453 <pre class="wiki">Hello, i downloaded 1.33.0 RC1 from http://www.osl.iu.edu/~dgregor/boost-1.33.0/ and tried to recompile some rather large projects with it (currently using 1.32.0). Using MS VC 7.1 and GCC 3.4.4 Doesnt work for boost::serialization: boost::archive::polymorphic_iarchive&amp; ar boost::archive::polymorphic_oarchive&amp; ar It bumps on STL containers now: boost\serialization\collections_load_imp.hpp(118) : error C2039: 'reset_object_address' : is not a member of 'boost::archive::polymorphic_iarchive' boost\archive\polymorphic_iarchive.hpp(52) : see declaration of 'boost::archive::polymorphic_iarchive' ---- snip "collections_load_imp.hpp" ---- // map input template&lt;class Archive, class Container&gt; struct archive_input_map { inline void operator()(Archive &amp;ar, Container &amp;s) { #if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1) typedef BOOST_DEDUCED_TYPENAME std::pair&lt; BOOST_DEDUCED_TYPENAME Container::key_type, BOOST_DEDUCED_TYPENAME Container::referent_type &gt; type; #else typedef BOOST_DEDUCED_TYPENAME std::pair&lt; BOOST_DEDUCED_TYPENAME Container::key_type, BOOST_DEDUCED_TYPENAME Container::mapped_type &gt; type; #endif stack_construct&lt;Archive, type&gt; t(ar); // borland fails silently w/o full namespace ar &gt;&gt; boost::serialization::make_nvp("item", t.reference()); std::pair&lt;BOOST_DEDUCED_TYPENAME Container::const_iterator, bool&gt; result = s.insert(t.reference()); assert(result.second); // make sure we inserted a new element ar.reset_object_address(&amp; (* result.first), &amp; t); } }; ---- snip "collections_load_imp.hpp" ---- "ar.reset_object_address(&amp; (* result.first), &amp; t);" is called but not implemeted for these "polymorphic" archive types? I only found it implemented in "basic_iarchive_impl" (and "basic_oarchive_impl" respective). What gives? It worked for 1.32 (because there was no "reset_object_address" there). Is there another (new) way to use polymorphic archive interfaces serializing stl containers? Regards, A. Focht </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/453 Trac 1.4.3 Robert Ramey Fri, 19 Aug 2005 15:29:35 GMT <link>https://svn.boost.org/trac10/ticket/453#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/453#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 I believe this should be corrected in the 1.33 official release. Let me know if you're still getting this. Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Thu, 20 Oct 2005 04:47:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/453#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/453#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 fixed in 1.33.1 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>sf-robot</dc:creator> <pubDate>Fri, 04 Nov 2005 03:20:09 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/453#comment:3 https://svn.boost.org/trac10/ticket/453#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). </pre> Ticket