
8 Feb
2007
8 Feb
'07
7:40 a.m.
add the "const"
Read the "rationale" section of the documentation for an explanation.
Robert Ramey
int main() {
const Vertex v1(1.5, 2.5); // add "const" here std::ofstream ofs("myfile.vtx");
boost::archive::text_oarchive oa(ofs);
oa << v1; ofs.close();
return 0; }
I'm sorry, "const" did not help. I'm almost positive it's missing libs or something similar, cause I get same errors compiling "bus stops" demo (demo.cpp) from boost tutorial. Thx for your time ! Regards Misha