Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-02-07 11:41:30


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;
> }
>


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