Opened 15 years ago

Closed 15 years ago

#1721 closed Bugs (fixed)

Serialization examples don't compile in trunk for G++ 4.1

Reported by: Sohail Somani <boost-trac@…> Owned by: Robert Ramey
Milestone: Boost 1.35.0 Component: serialization
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

The compile errors:

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::<unnamed>::serializer_map<Archive>’ ../../../boost/archive/impl/archive_pointer_iserializer.ipp:27: error: previous definition of ‘class boost::archive::detail::<unnamed>::serializer_map<Archive>’

passed ../../../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’

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.

Attaching patch to fix. Think this should be a .35 thing.

Attachments (1)

serialization_examples.patch (4.3 KB ) - added by Sohail Somani <boost-trac@…> 15 years ago.
Fix for above compile errors

Download all attachments as: .zip

Change History (3)

by Sohail Somani <boost-trac@…>, 15 years ago

Fix for above compile errors

comment:1 by René Rivera, 15 years ago

Component: Noneserialization
Owner: set to Robert Ramey

comment:2 by Robert Ramey, 15 years ago

Resolution: fixed
Status: newclosed

The second is just weird, I don't even know how that got past before.

Hmm - I never thought that was a syntax error - oh well

Note: See TracTickets for help on using tickets.