Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] shared_ptr to const object
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-20 09:59:54


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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at