On Dec 14, 2007 8:13 AM, Joseph Turian <turian@gmail.com> 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