|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-07-10 15:32:34
int main(int argc, char* argv[])
{
DynamicArray<char> ArrayOfAs, ArrayOfAs2;
const ArrayOfAs.Element = new char[5];
ArrayOfAs.Size = 5;
char* secondElement = &ArrayOfAs.Element[1];
char* secondElement2;
std::stringstream stream;
{
boost::archive::text_oarchive oa(stream);
oa << ArrayOfAs;
oa << secondElement; // error message here - serializating a
non-tracked type
// (a primitive) through a
pointer.
}
Robert Ramey
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net