Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization]const member when using boostserialization
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-02-17 09:13:51


You could cast away the "const" with const_cast<int &>(a).

Robert Ramey
  "Ray Zhang" <RayZhang06_at_[hidden]> wrote in message news:BLU117-DS2FC09ABD4883016A6AC59D9B40_at_phx.gbl...
  Hi,
  I got a problem when i use boost:: serialization lib --- whether a const data member could be serialized?
  For example,
  class A
  {
  const int a;
  }
  how can i serialize 'a' by using boost?
  Best Regards.

  Ray Zhang.

  Tsinghua Univ.
  P.R.China

------------------------------------------------------------------------------

  _______________________________________________
  Boost-users mailing list
  Boost-users_at_[hidden]
  http://lists.boost.org/mailman/listinfo.cgi/boost-users



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