Boost logo

Boost :

From: Russell Hind (rh_gmane_at_[hidden])
Date: 2004-10-22 11:27:15


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


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