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: | 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)
Change History (3)
by , 15 years ago
Attachment: | serialization_examples.patch added |
---|
comment:1 by , 15 years ago
Component: | None → serialization |
---|---|
Owner: | set to |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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
Fix for above compile errors