From: Robert Ramey (ramey_at_[hidden])
Date: 2007-10-24 23:11:46
If it's a pointer to an object, loading it would mean that one is changing a
"const" A which violates what "const" is supposed to do. It is possible to
do this but would require some casting in the appropriate place.
Eric Bourlier wrote:
> Is there a way to serialize a shared_ptr to a const object?
> For example: ar & shared_ptr<const A> b;
> I receive a compile error that prevents the above code from working.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk