Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2004-04-26 14:15:13


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Robert Ramey
> Sent: Monday, April 26, 2004 2:02 PM
> To: boost_at_[hidden]
> Subject: Re:Re: Re:[boost] Re: Serialization Formal Review #2
>
>
> Peter Dimov wrote:
>
> > FWIW, in my own library I do, indeed, have a special case code for
> > serializing an unmodified shared_ptr, for two reasons. First, this
> > shows that the library is flexible enough. Second, even if
> we modify
> > boost::shared_ptr to be boost::serialization-friendly, we won't be
> > able to patch std::tr1::shared_ptr.
>
> The main problem I had was that certain member variable
> weren't accessible. The STL collections don't have that issue
> so there was no problem.

Sorry if this is silly question, but why would you need an access to the
counter?
IMO we should be able to save/load shared_ptr without need to save it.

Gennadiy.


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