Re: [Boost-bugs] [Boost C++ Libraries] #3604: Access violation on diamond inheritance

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3604: Access violation on diamond inheritance
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-30 11:48:50


#3604: Access violation on diamond inheritance
----------------------------------+-----------------------------------------
  Reporter: kondo@… | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: Boost 1.41.0 | Component: serialization
   Version: Boost 1.40.0 | Severity: Problem
Resolution: invalid | Keywords:
----------------------------------+-----------------------------------------

Comment(by kondo@…):

 Thanks for reply.

 I understand it is illegal that static down cast from virtual base class.

 I have 3 questions.

 == Q1 ==
 There is the test that serialize via the virtual base class.

 https://svn.boost.org/trac/boost/browser/tags/release/Boost_1_41_0/libs/serialization/test/test_diamond.cpp#L184

 And It seems to work correctly.

 It it illegal?

 Is it only accidental correct behavior?

 It makes me confusing. Why does such test exist?

 == Q2 ==
 This question depends on the answer of Q1.

 If the test of Q1 is not illegal, Is the number of bottom classes of
 diamond inherit is important?

 Is only one bottom class allowed ?

 == Q3 ==
 We often need to treat the collection of the virtual base class, and we
 often want to serialize them.

 For example, UML meta-model structure.(Attached file UML_META.png)

 Doesn't current serialization library support such needs?

 Of course I understand that this is my problem (not your problem).If
 possible, Could you give me some advice?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3604#comment:5>
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:01 UTC