Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4676: Ambiguous register_type with polymorphic_x_?archive on g++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-25 16:57:48
#4676: Ambiguous register_type with polymorphic_x_?archive on g++
--------------------------------+-------------------------------------------
Reporter: Richard Hazlewood | Owner: ramey
Type: Patches | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords: gcc g++ ambiguous polymorphic archive
--------------------------------+-------------------------------------------
Comment (by ramey):
no way can I put a "using" declaration in a *.hpp file.
What we can do is add the following to polymorphic_oarchive:
{{{
// register type function
const basic_pointer_iserializer *
register_type(T * t = NULL){
return ArchiveImplementation::register_type(t);
}
}}}
and similar block to polymorphic_oarchive. Would that not solve the
issue. I've included this in my code base for eventual migration to trunk
and release but don't have a specific test yet. Care to try this?
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4676#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:04 UTC