Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2007-02-27 20:23:24


Bugs item #1670451, was opened at 2007-02-27 17:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1670451&group_id=7586

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
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Robert Ramey (ramey)
Summary: Possible bug in basic_iarchive_impl::reset_object_address

Initial Comment:
In basic_iarchive_impl::reset_object_address (file libs/serialization/src/basic_iarchive.cpp), the loop index i gets incremented twice in each iteration of the second for loop: first in the "for" line, and then at the last line before the end of the loop. This causes some object addresses to not be updated as they should. In turn, this causes problems when serializing pointers to object contained in a map.

This seems to be a bug. In some preliminary tests, the problem disappears if I take out the second "i++" (line 297 of version 1.20.2.2).

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1670451&group_id=7586

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk