2009/05/05

Boost.Serialization with multi thread ... I/O?

text_oarchive constructor has not been completed while receiving of text_iarchive. Are the text_iarchive and text_oarchive sequential?

Official sample of Boost.Asio with Serialization uses stringstream as buffer...
Firstly, text_oarchive binds with ostringstream, and the result of ostringstream::str() is written to ip::tcp::iostream.
Text_iarchive and istringstream, too.

The following code has also not returned from iarchive's construction;

boost::asio::ip::tcp::iostream ios;
boost::archive::text_oarchive(ios);
boost::archive::text_iarchive(ios); // <- It never returns.

What am I wrong ? ... Usage of Boost.Asio ?

No comments:

How to set parameters to debugging program on Visual Studio 2019 with CMake

Solution: MSDN Sometimes the "Debug and Launch Settings for CMake" bottun is disabled. In this case, change to the target view. ...