Boost C++ Libraries: Ticket #5265: unordered_set and unordered_map serialization https://svn.boost.org/trac10/ticket/5265 <p> This patch provides serialization for std::tr1 containers unordered_set, unordered_multiset, unordered_map, and unordered_multimap. </p> <p> Code using boost::unordered_... must instead use std::tr1. The interface is identical. </p> <p> It includes boost TR1 header files for portability (&lt;boost/tr1/unordered_set.hpp&gt; or &lt;boost/tr1/unordered_map.hpp&gt;). See &lt;<a class="ext-link" href="http://lists.boost.org/boost-users/2011/02/66535.php"><span class="icon">​</span>http://lists.boost.org/boost-users/2011/02/66535.php</a>&gt; </p> <p> The patch file adapts the serialization tests test_map.cpp and test_set.cpp to include unordered variants. This patch requires <a class="ext-link" href="https://svn.boost.org/trac/boost/changeset/69520"><span class="icon">​</span>changeset 69520</a> (see <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/5254"><span class="icon">​</span>Ticket #5254</a>). </p> <p> This has been verified on MinGW-32/gcc-4.4 and MSVC-8. It should produce no spurious warnings on compile. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5265 Trac 1.4.3 Jim Bell <jim@…> Sat, 05 Mar 2011 11:36:22 GMT attachment set https://svn.boost.org/trac10/ticket/5265 https://svn.boost.org/trac10/ticket/5265 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">unordered_set.hpp</span> </li> </ul> <p> boost/serialization/unordered_set.hpp </p> Ticket Jim Bell <jim@…> Sat, 05 Mar 2011 11:36:53 GMT attachment set https://svn.boost.org/trac10/ticket/5265 https://svn.boost.org/trac10/ticket/5265 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">unordered_map.hpp</span> </li> </ul> <p> boost/serialization/unordered_map.hpp </p> Ticket Jim Bell <jim@…> Sat, 05 Mar 2011 11:37:32 GMT attachment set https://svn.boost.org/trac10/ticket/5265 https://svn.boost.org/trac10/ticket/5265 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">unordered_collections_load_imp.hpp</span> </li> </ul> <p> boost/serialization/unordered_collections_load_imp.hpp </p> Ticket Jim Bell <jim@…> Sat, 05 Mar 2011 11:38:01 GMT attachment set https://svn.boost.org/trac10/ticket/5265 https://svn.boost.org/trac10/ticket/5265 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">unordered_collections_save_imp.hpp</span> </li> </ul> <p> boost/serialization/unordered_collections_save_imp.hpp </p> Ticket Jim Bell <jim@…> Sat, 05 Mar 2011 11:39:01 GMT attachment set https://svn.boost.org/trac10/ticket/5265 https://svn.boost.org/trac10/ticket/5265 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_unordered.patch</span> </li> </ul> <p> Patch for libs/serialization/test (test_map.cpp and test_set.cpp) </p> Ticket jsd@… Sat, 09 Apr 2011 14:37:15 GMT <link>https://svn.boost.org/trac10/ticket/5265#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:1</guid> <description> <p> 'boost/serialization/detail/stack_constructor.hpp' seems to be missing from the includes in 'boost/serialization/unordered_collections_load_imp.hpp' </p> <p> gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC), fedora 14 </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Sun, 10 Apr 2011 02:33:11 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5265 https://svn.boost.org/trac10/ticket/5265 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">unordered_collections_load_imp.2.hpp</span> </li> </ul> <p> boost/serialization/unordered_collections_load_imp.hpp (v2 -- supercedes previous) </p> Ticket Jim Bell <jim@…> Sun, 10 Apr 2011 02:34:24 GMT <link>https://svn.boost.org/trac10/ticket/5265#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:2</guid> <description> <p> jsd: thanks for the feedback. </p> <p> I merged into unordered_collections_load_imp.hpp the same headers that collections_load_imp.hpp includes, boost/serialization/detail/stack_constructor.hpp being one. I checked unordered_collections_save_imp.hpp and it seemed ok. </p> <p> Passes all tests against MinGW-gcc-4.4 and MSVC-8. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 15 Nov 2012 16:15:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5265#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:3</guid> <description> <p> what about boost own containers? how can they provide serialization for stl containers and not for boost::own containers, damn </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 04 Feb 2014 06:46:11 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5265#comment:4 https://svn.boost.org/trac10/ticket/5265#comment:4 <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">fixed</span> </li> </ul> <p> I've added this to the library. I made changes to be compatible with c++11 rather than TR1. Will show up in the development branch shortly. </p> <p> Robert Ramey </p> Ticket anonymous Tue, 20 May 2014 17:42:19 GMT <link>https://svn.boost.org/trac10/ticket/5265#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5265#comment:4" title="Comment 4">ramey</a>: </p> <blockquote class="citation"> <p> I've added this to the library. I made changes to be compatible with c++11 rather than TR1. Will show up in the development branch shortly. </p> <p> Robert Ramey </p> </blockquote> <p> How shortly is "shortly"? I can't find it yet and it's at least 3 years now. </p> <p> Thanks for a beautiful library </p> </description> <category>Ticket</category> </item> <item> <author>maxim.yegorushkin@…</author> <pubDate>Mon, 16 Jun 2014 15:12:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5265#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:6</guid> <description> <p> I just hit this issue today, when these patches will be integrated into boost please? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>querier</dc:creator> <pubDate>Tue, 22 Jul 2014 10:34:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5265#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:7</guid> <description> <p> Could this please be merged? I'm copying the file for local use, but I'd really like this to be distributed with boost. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 23 Jul 2014 15:37:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5265#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5265#comment:8</guid> <description> <p> my records show: </p> <p> commit to develop commit 2140063 </p> <p> include/boost/serialization/stack.hpp include/boost/serialization/unordered_collections_load_imp.hpp include/boost/serialization/unordered_collections_save_imp.hpp include/boost/serialization/unordered_map.hpp include/boost/serialization/unordered_set.hpp include/boost/serialization/void_cast.hpp test/Jamfile.v2 test/test_array.cpp test/test_deque.cpp test/test_list.cpp test/test_map.cpp test/test_pimpl.cpp test/test_priority_queue.cpp test/test_private_base.cpp test/test_queue.cpp test/test_set.cpp test/test_stack.cpp test/test_vector.cpp </p> <p> and merge to master commit 484874f </p> <blockquote> <p> .... </p> </blockquote> <p> Does this not address this ticket? </p> </description> <category>Ticket</category> </item> </channel> </rss>