
9 Sep
2005
9 Sep
'05
4:15 p.m.
Of course, if I replace B const *pc by B *pc, then the code works correctly.What can I do to serialize pointers to const data ?
Regards,
Or you could replace this above with: ar & const_cast<B *>(pc); (or maybe const_cast<B * &>(pc) But that would override the normal meaning of "const" as applied to a member variable. You really have to ask yourself what you want serialize to include. Robert Ramey