Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3604: Access violation on diamond inheritance
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-29 14:38:19
#3604: Access violation on diamond inheritance
----------------------------------+-----------------------------------------
Reporter: kondo@⦠| Owner: ramey
Type: Bugs | Status: reopened
Milestone: Boost 1.41.0 | Component: serialization
Version: Boost 1.40.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Changes (by kondo@â¦):
* status: closed => reopened
* resolution: invalid =>
Comment:
Sorry, I couldn't understand enough your comment.
I modified my code (main.cpp) , and it made compile error.
The compile error is in next code.
{{{
Target* pTarget2 = static_cast<Target *>(pVBase);
}}}
And next, I checked that use only static_cast from Target* to Vbase *, it
doesn't make compile error, but run result is not changed.
I think that we can't use static_cast as downcast.
(Does it mean library internal behavior??)
When we used BOOST_CLASS_EXPORT, I think that we can serialize sub-class
via virtual base class.
Please point out the wrong point of my code.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3604#comment:3> 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