Direct boost serialization to char array
Posted
by scooterman
on Stack Overflow
See other posts from Stack Overflow
or by scooterman
Published on 2010-06-10T14:56:38Z
Indexed on
2010/06/10
15:03 UTC
Read the original article
Hit count: 197
Hi all,
Boost serialization doc's assert that the way to serialize/deserialize items is using a binary/text archive with a stream on the underlying structure. This works fine if I wan't to use the serialized data as an std::string, but my intention is to convert it directly to a char* buffer. How can I achieve this without creating a temporary string?
© Stack Overflow or respective owner