[Boost-bugs] [Boost C++ Libraries] #12549: duplicate object created instead of throwing pointer_conflict

Subject: [Boost-bugs] [Boost C++ Libraries] #12549: duplicate object created instead of throwing pointer_conflict
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-25 10:45:23


#12549: duplicate object created instead of throwing pointer_conflict
----------------------------------------+---------------------------
 Reporter: MichaÅ‚ Brzozowski <miki@…> | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
----------------------------------------+---------------------------
 Consider two classes, Father and Child, with a circular dependency. Father
 contains a Child member, and Child contains a pointer to Father.

 There is a way to serialize and deserialize this structure in such a way
 that an extra object of type Child is created. I believe that
 pointer_conflict should be thrown during serialization instead.

 The created XML archive (see attachment) is consistent, so the extra
 object is created during deserialization.

 I observed this behavior in 1.57 and 1.62.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12549>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC