Subject: Re: [boost] [Serialization] Constructor for polymorphic archives
From: Jeff Flinn (Jeffrey.Flinn_at_[hidden])
Date: 2013-06-24 12:42:22
On 6/24/2013 11:18 AM, Bjorn Reese wrote:
> I have a set of my own Boost.Serialization archives (e.g. ) that I
> wish to write polymorphic variants of.
> I have tried to follow the blueprint from polymorphic_text_iarchive,
> which inherits from polymorphic_iarchive_route.
> The problem is that the constructor of my archives takes iterators
> (begin and end) as arguments, but the polymorphic_iarchive_route
> constructor expects a std::stream argument. Is there any workaround for
My first thought would be to use boost::iostream to create the i/o
streams with an appropriate source/sink wrapping your iterator usage.