Subject: [Boost-bugs] [Boost C++ Libraries] #2770: SunCC: base_object does not work anymore when serializing by base class pointer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-17 18:50:34
#2770: SunCC: base_object does not work anymore when serializing by base class
pointer
----------------------------------+-----------------------------------------
Reporter: boost_at_[hidden] | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: serialization
Version: Boost 1.35.0 | Severity: Regression
Keywords: |
----------------------------------+-----------------------------------------
unregistered void cast in function '(unknown)'
http://www.boost.org/development/tests/trunk/developer/output/Sandia-sun-
boost-bin-v2-libs-serialization-test-test_exported_binary_archive-test-
sun-5-9-debug-stdlib-sun-stlport.html
The reason for this seems to be due to the new changes to force certain
code to execute before main.
It may be possible to use __attribute__((constructor)) on the latest
versions of SunCC to make this work however I am not sure if it works with
templates.
The portable thing to do is to use void_cast_register<Derived,Base>()
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2770> 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