Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1941: polymorphic archive interface doesn't match other archive interfaces
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-10 05:33:58
#1941: polymorphic archive interface doesn't match other archive interfaces
---------------------------------------+------------------------------------
Reporter: mighty_ernie_at_[hidden] | Owner: ramey
Type: Bugs | Status: assigned
Milestone: Boost 1.35.1 | Component: serialization
Version: Boost 1.35.0 | Severity: Problem
Resolution: | Keywords: polymorphic
---------------------------------------+------------------------------------
Comment (by ramey):
get_library_version() is public in the base class. Since its virtual
function it dispatches through the vtable to the derived class function
with the same name. The one in the derived class may be - and if fact
should be - private. This prevents users from calling intothe dispatch
directly and there by breaking the polymorphic design.
You shouldn't even be including polymorphic_iarchive_dispatch.hpp in your
code - either directly or indirectly. Check out the manual and examples.
you can send me a small example which illustrates the problem and I'll
look at it.
RObert Ramey
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1941#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:49:58 UTC