Boost logo

Boost Users :

From: misha_at_[hidden]
Date: 2007-02-08 02:40:47


> 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


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