24 Jun
2013
24 Jun
'13
4:42 p.m.
On 6/24/2013 11:18 AM, Bjorn Reese wrote:
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?
My first thought would be to use boost::iostream to create the i/o streams with an appropriate source/sink wrapping your iterator usage. Jeff