Boost logo

Boost Users :

From: Mahesh Venkitachalam (mkvenkit.vc_at_[hidden])
Date: 2007-12-13 22:00:37


On Dec 14, 2007 8:13 AM, Joseph Turian <turian_at_[hidden]> wrote:

>
>
> main() {
> std::ofstream ofs("removeme");
> boost::archive::text_oarchive oa(ofs);
> bus_route a;
> oa << a;
> }

The object has to be const, I think - can you try:

const bus_route& b = a;
oa << b;

Mahesh



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