Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9799: polymorphic_downcast does not support virtual inheritance
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-20 23:29:11
#9799: polymorphic_downcast does not support virtual inheritance
-------------------------------------------+---------------------------
Reporter: Camille Gillot <k1000.jlo@â¦> | Owner: no-maintainer
Type: Patches | Status: closed
Milestone: To Be Determined | Component: utility
Version: Boost 1.54.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------------------+---------------------------
Comment (by Camille Gillot <k1000.jlo@â¦>):
IMHO, in the case of virtual inheritance, dynamic_cast being the only
viable way makes it the most efficient.
Still, this function not handling virtual inheritance should be documented
: the current documentation does not tell anything about this case.
Moreover, I don't think that static_cast's not handling this case is well-
known enough.
Sorry for the patch, copy-paste errors come from a workaround used
elsewhere. Here comes a corrected version of the patch (which does
compile).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9799#comment:2> 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:15 UTC