
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: Monday, April 26, 2004 2:02 PM To: boost@lists.boost.org 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.