Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2005-08-03 04:44:07

Bugs item #1250901, was opened at 2005-08-03 02:44
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: polymorphic i/o archives and stl containers problem

Initial Comment:

i downloaded 1.33.0 RC1 from

and tried to recompile some rather large projects with
it (currently using 1.32.0).
Using MS VC 7.1 and GCC 3.4.4

Doesnt work for boost::serialization:

boost::archive::polymorphic_iarchive& ar
boost::archive::polymorphic_oarchive& ar

It bumps on STL containers now:

boost\serialization\collections_load_imp.hpp(118) :
error C2039: 'reset_object_address' : is not a member
of 'boost::archive::polymorphic_iarchive'

boost\archive\polymorphic_iarchive.hpp(52) : see
declaration of 'boost::archive::polymorphic_iarchive'

---- snip "collections_load_imp.hpp" ----
// map input
template<class Archive, class Container>
struct archive_input_map
    inline void operator()(Archive &ar, Container &s)
            typedef BOOST_DEDUCED_TYPENAME std::pair<
                BOOST_DEDUCED_TYPENAME Container::key_type,
> type;
            typedef BOOST_DEDUCED_TYPENAME std::pair<
                BOOST_DEDUCED_TYPENAME Container::key_type,
> type;
        stack_construct<Archive, type> t(ar);
        // borland fails silently w/o full namespace
        ar >> boost::serialization::make_nvp("item",
Container::const_iterator, bool> result =
        assert(result.second); // make sure we inserted
a new element
        ar.reset_object_address(& (* result.first), & t);
---- snip "collections_load_imp.hpp" ----

"ar.reset_object_address(& (* result.first), & t);" is
called but not implemeted for these "polymorphic"
archive types?

I only found it implemented in "basic_iarchive_impl"
(and "basic_oarchive_impl" respective).

What gives?
It worked for 1.32 (because there was no
"reset_object_address" there).

Is there another (new) way to use polymorphic archive
interfaces serializing stl containers?


A. Focht


You can respond by visiting:

SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast.
Boost-bugs mailing list

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