Boost logo

Boost :

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.

Robert Ramey

Eric Bourlier wrote:
> Hi,
>
> 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:
> http://lists.boost.org/mailman/listinfo.cgi/boost


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