Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2005-08-08 05:12:17

Bugs item #1254062, was opened at 2005-08-08 03:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: serialization
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Robert Ramey (ramey)
Summary: 1.33 RC2: polymorphic stuff broken further??

Initial Comment:
Hello again,

i just downloaded 1.33 RC2 and noticed polymorphic
serialization doesnt work for my projects anymore.
These errors are new and different from RC1 (which
didnt work too, but 1.32 works).
I cant get it compile anymore (static compile time
asserts and others)...

I even loaded up the provided sample boost ser.
projects and notice there are similar errors too
(from libs\serialization\vc7ide\*.sln)

---- demo_exception

: error C2027: use of undefined type
: see reference to class template instantiation
'boost::STATIC_ASSERTION_FAILURE<x>' being compiled
: see reference to function template instantiation
'void boost::archive::save<Archive,T>(Archive &,T & )'
being compiled
            T=School *
: see reference to function template instantiation
& ,int)' being compiled
            T=School *
: see reference to function template instantiation
<<<School*>(T & )' being compiled
            T=School *

(iserializer is same problem:)

: error C2027: use of undefined type

(similar to error in my projects)

These errors go away if i make objects to be serialized
e.g. (for the sample) school* const .. ????

This "constness" constraint didnt show up in 1.32.

It is especially difficult to enforce it if you
serialize members with "ar & m1 & m2 .. " notation.

----- demo_shared_ptr:

: error C2039: 'sp_counted_base_impl' : is not a member
of 'boost::detail'
: error C2061: syntax error : identifier

There are some errors with invalid project references
and library names at all (linker errors, tries to link
with wrong libs).
It seems the project files are out of sync for long time.



boost\boost\archive\detail\interface_iarchive.hpp(73) :
error C2039: 'basic_iarchive' : is not a member of
boost\boost\archive\polymorphic_iarchive.hpp(52) : see
declaration of 'boost::archive::polymorphic_iarchive'
boost\boost\archive\detail\interface_iarchive.hpp(72) :
while compiling class-template member function 'void
boost::serialization::extended_type_info *const
,boost::shared_ptr<T> &)'
boost\boost\archive\detail\interface_iarchive.hpp(73) :
error C2662:
: cannot convert 'this' pointer from
'boost::archive::polymorphic_iarchive' to
'boost::archive::detail::basic_iarchive &'
        Reason: cannot convert from
'boost::archive::polymorphic_iarchive' to
        Conversion requires a second
user-defined-conversion operator or constructor

This is my include list (i use precompiled header):


#include "boost/archive/polymorphic_oarchive.hpp"
#include "boost/archive/polymorphic_iarchive.hpp"

#include "boost/serialization/shared_ptr.hpp"
#include "boost/serialization/serialization.hpp"
#include "boost/serialization/utility.hpp"
#include "boost/serialization/list.hpp"
#include "boost/serialization/version.hpp"
#include "boost/serialization/map.hpp"
#include "boost/serialization/vector.hpp"
#include "boost/serialization/string.hpp"
#include "boost/serialization/split_member.hpp"

(i had to move "boost/serialization/shared_ptr.hpp"
backwards after "archive" headers in contrast to 1.32)

These 1.33 poly serialization bugs are big showstoppers
for us because we extensively use serialization.
If they remain, 1.33 will have to be skipped...


A. Focht


You can respond by visiting:

SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at