|
Boost Users : |
Subject: [Boost-users] [asio] Feature request for serializable types.
From: Germán Diago (germandiago_at_[hidden])
Date: 2010-08-22 11:21:07
Hello. I'm using boost.asio and trying to serialize a boost.variant,
which is serializable because each
of the fields I used in the variant have a serialize method required
by boost.serialization library.
I want to send my variant as binary data. This is not easy although I
have a serialize method because
this does not work:
async_write(mysocket, boost::asio::buffer(myserializablevariant), when_done);
I think all serializable types should be automatically usable as
boost::asio::buffer, like std::vector, in this call. I think
this shouldn't be too hard to implement, but I don't know how to
serialize my data in binary format
in a straight-forward way. Any ideas? Thanks in advance.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net