$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Serialization] shared_ptr to const object
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-20 09:59:54
AMDG
elizabeta petreska wrote:
> Thank you for the reply.
> This works!!! , but it creates a temporary. I was thinking how to cast the
> constness away, without making temporary object. I gess know at least I have
> one possible solution, althgough not complete happy with it :)
>
You can't avoid the temporary. Actually, I think the
serialization library should handle this automatically,
since its perfectly safe.
In Christ,
Steven Watanabe