You could cast away the "const" with const_cast<int &>(a).
 
Robert Ramey
"Ray Zhang" <RayZhang06@hotmail.com> wrote in message news:BLU117-DS2FC09ABD4883016A6AC59D9B40@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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users