|
Boost Users : |
Subject: Re: [Boost-users] Serialization of intrusive_ptr's?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-04-20 12:41:31
Jared Lee Richardson:
> Anyone know or have any tips on this? Should I just get the raw pointer
> out of all of my intrusive_ptrs and serialize that? Or can I just archive
> a std container with intrusive ptrs?
I think that if you take boost/serialization/scoped_ptr.hpp and replace
scoped_ptr with intrusive_ptr, the result should "just work" because of
Boost.Serialization's raw pointer tracking. But I haven't actually tried.
:-)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net