Boost logo

Boost Users :

From: Joseph Turian (turian_at_[hidden])
Date: 2007-12-13 22:48:27


Wow, it worked! Is that in the documentation? I must have missed it.

Thanks,
  Joseph

On Dec 13, 2007 10:00 PM, Mahesh Venkitachalam <mkvenkit.vc_at_[hidden]> wrote:
>
>
>
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Academic: http://www-etud.iro.umontreal.ca/~turian/
Business: http://www.metaoptimize.com/

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