Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2002-11-24 23:22:41

Date: Sun, 24 Nov 2002 20:39:03 +0100
From: Matthias Troyer <troyer_at_[hidden]>

>you seem to have misunderstood that: a function

>void basic_oarchive::write_array(double* p, std::size_t n)

>will work for ALL contiguous data: C-arrays, std::vector, ublas and MTL
>arrays, and so on

Hmmm - what I don't understand is how this would be different that calling

void basic_oarchive::write_array(void* p, size_t count)

which has been in the library from the very beginning.

So you can just as well wite

class MyClass
        double d[100000];
        void save(basic_oarchive &ar)
                write_binary(d, sizeof(d));

Incidently, this would work for any kind of archive - not just the
binary ones.

Robert Raamey

Boost list run by bdawes at, gregod at, cpdaniel at, john at