Boost C++ Libraries: Ticket #1721: Serialization examples don't compile in trunk for G++ 4.1 https://svn.boost.org/trac10/ticket/1721 <p> The compile errors: </p> <p> gcc.compile.c++ ../../../bin.v2/libs/serialization/example/demo_fast_archive.test/gcc-4.1.3/debug/demo_fast_archive.o ../../../boost/archive/impl/archive_pointer_oserializer.ipp:25: error: redefinition of ‘class boost::archive::detail::&lt;unnamed&gt;::serializer_map&lt;Archive&gt;’ ../../../boost/archive/impl/archive_pointer_iserializer.ipp:27: error: previous definition of ‘class boost::archive::detail::&lt;unnamed&gt;::serializer_map&lt;Archive&gt;’ </p> <p> <strong>passed</strong> ../../../bin.v2/libs/serialization/example/demo_portable_archive.test/gcc-4.1.3/debug/demo_portable_archive.test gcc.compile.c++ ../../../bin.v2/libs/serialization/example/demo_shared_ptr.test/gcc-4.1.3/debug/demo_shared_ptr.o demo_shared_ptr.cpp:44: error: extra qualification ‘A::’ on member ‘A’ demo_shared_ptr.cpp:45: error: extra qualification ‘A::’ on member ‘A’ demo_shared_ptr.cpp:63: error: extra qualification ‘B::’ on member ‘B’ demo_shared_ptr.cpp:64: error: extra qualification ‘B::’ on member ‘B’ </p> <p> The first part of the patch is because there are two definitions of a class in the anonymous namespace. The second is just weird, I don't even know how that got past before. </p> <p> Attaching patch to fix. Think this should be a .35 thing. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1721 Trac 1.4.3 Sohail Somani <boost-trac@…> Thu, 27 Mar 2008 04:42:47 GMT attachment set https://svn.boost.org/trac10/ticket/1721 https://svn.boost.org/trac10/ticket/1721 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">serialization_examples.patch</span> </li> </ul> <p> Fix for above compile errors </p> Ticket René Rivera Thu, 27 Mar 2008 04:48:13 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1721#comment:1 https://svn.boost.org/trac10/ticket/1721#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Robert Ramey</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">serialization</span> </li> </ul> Ticket Robert Ramey Mon, 31 Mar 2008 16:10:59 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1721#comment:2 https://svn.boost.org/trac10/ticket/1721#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">fixed</span> </li> </ul> <p> The second is just weird, I don't even know how that got past before. </p> <p> Hmm - I never thought that was a syntax error - oh well </p> Ticket