Boost logo

Boost :

Subject: [boost] [Serialization] Constructor for polymorphic archives
From: Bjorn Reese (breese_at_[hidden])
Date: 2013-06-24 11:18:14


I have a set of my own Boost.Serialization archives (e.g. [1]) 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
this?

[1]
http://sourceforge.net/p/protoc/code/ci/master/tree/include/protoc/transenc/basic_iarchive.hpp


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk