-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: Tuesday, March 27, 2007 10:18 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [serialization] Assertion `new_cid == cid' failed-fails on gcc, works on msvc
Things to try:
a) does it work with non-polymorphic archives of the same type: binary? etc. That is, can you check to see if its an issue with "polymophic-ness" or not. b) try serializtion to xml_oarchive and save the output. check to see that you can read it. Then try polymorphic_xml_oarchive and compare the two.
Hi Robert, Thank you for your response. In my example, the archives are not polymorphic, the class I am serializing *is* polymorphic. I think I've narrowed it down to stripping out the use of shared_ptr (i.e., without it, it "works") but I'm going to try for a smaller example. Sohail