Boost logo

Boost :

From: Jeremy Maitin-Shepard (jbms_at_[hidden])
Date: 2002-11-25 22:18:39


On Mon, 2002-11-25 at 20:39, Robert Ramey wrote:
> >As mentioned in previous posts, additional functions e.g. load_array
> >and save_array need to be added to allow efficient serialization of large data sets.

> why can't this be handled using
>
> basic_oarchive::write_binary(void *p, size_t count)
>

They are not the same at all.

The only array types for which in the general case that will result in a
portable archive are char and unsigned char. It is only equivelent to a
write_array function if the archive is the same as the platform specific
binary archive.

In fact, write_binary probably should not exist in that form - the
parameter type should be changed to char const * or unsigned char const
*. Note also the lack of const.


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