Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2563: [boost][serialization] void_upcast is very slow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-05 10:03:59
#2563: [boost][serialization] void_upcast is very slow
----------------------------------+-----------------------------------------
Reporter: jacobholm_at_[hidden] | Owner: ramey
Type: Feature Requests | Status: assigned
Milestone: Boost 1.38.0 | Component: serialization
Version: Boost 1.37.0 | Severity: Optimization
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Comment(by jacobholm_at_[hidden]):
The project I am using contains derived classes with member variables. If
possible, I think that the best way would be to modify void_upcast to use
static_cast<T> with templates. That way one would be able to use multiple
inheritance as well. Another solution could be to have an option to
disable upcast alltogether, letting the user keep track of inheritance
between classes. If used correctly this last solution will work with
multiple inheritance as well.
I have attached an example cpp file to the ticket which uses static_cast
on derived objects, together with multiple inheritance.
Yours sincerely,
Jacob Holm
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2563#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:49:59 UTC