Boost logo

Boost :

Subject: Re: [boost] Boost Serialization: Serializing large objects
From: Seth (bugs_at_[hidden])
Date: 2017-10-12 09:07:57


On 05-10-17 19:41, Adlai Shawareb via Boost wrote:
> std::stringstream ss_;
> boost::archive::text_oarchive oa(ss_, boost::archive::no_header);
> oa << &object;

If you can't write directly to a file, just use `back_insert_device`
with a properly reserved container (std::string or std::vector<char> for
example):
http://www.boost.org/doc/libs/1_65_1/libs/iostreams/doc/classes/back_inserter.html


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