Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-09-09 11:15:23


> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk