Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-10-22 12:01:34


In spite of heroic efforts, we've been unable to implement "built-in"
serialization for arrays for BCB compilers. If you're using BCB and you
need to serialize an array you'll have to specify the loop in your class
serialization code.

Robert Ramey

"Russell Hind" <rh_gmane_at_[hidden]> wrote in message
news:clbcd9$phm$1_at_sea.gmane.org...
> I'm trying to serialise arrays (boost::array, actually). There aren't
> any specific headers for it as there are for STL types. Could one be
> added at some point?
>
> But I've run in to a more basic compilation problem under bcc32: This
> won't compile
>
> #include <boost/archive/text_oarchive.hpp>
>
> double d[3]; d[0] = 0.0; d[1] = 1.0; d[2] = 2.0;
> std::ofstream ofs("c:\\test.txt");
> archive::text_oarchive toa(ofs);
> toa & d;
>
> The error I get is
>
> [C++ Error] interface_oarchive.hpp(105): E2031 Cannot cast from 'double
> *' to 'double ( &) const[3]'
>
> Is this a problem with Borland or is my syntax for serialising arrays?
>
> Thanks
>
> Russell
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


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