[serialization]const member when using boost serialization
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
You could cast away the "const" with const_cast
participants (2)
-
Ray Zhang
-
Robert Ramey