From: Robert Ramey (ramey_at_[hidden])
Date: 2007-05-24 01:17:52
This is a clever idea. If it presentsthe standard iosteams interface
it could well be the "right" solution to making a portable binary archive.
Note that in the past such proposals have tripped up
in representing NaN floating point numbers in a portable way.
Ares Lagae wrote:
> I have developed a small library for binary I/O, called
> binary_iostreams, and I am using it in several of my own projects. I
> was wondering if there is interest for such a binary_iostreams
> The binary_iostreams is a small library, very similar to the iostreams
> library. Compared to iostreams, the unformatted I/O operators remain,
> and the formatted I/O operators now do binary I/O. This makes the
> binary_iostreams library easy to use for anyone acquainted with the
> iostreams library. The binary_iostreams library allows to set the
> endianness of the output stream. Together with <cstdint>, this allows
> for portable binary I/O, although binary_iostreams does not claim to
> be a full blown serialization library.
> Direct link to a motivating example:
> The library:
> The documentation:
> Best regards,
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk