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
"Russell Hind" <rh_gmane_at_[hidden]> wrote in message
> 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; d = 0.0; d = 1.0; d = 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'
> Is this a problem with Borland or is my syntax for serialising arrays?
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk