Boost Users :
From: Joseph Turian (turian_at_[hidden])
Date: 2006-01-20 01:44:12
> I can't see what you're trying to do here.
The sample I provided is basically the simplest version of my code
that, nonetheless, will not compile.
In my code, it's much more complicated. Basically, I have class A, and
class A has static member variables that are STL containers containing
objects of type boost::shared_ptr<A>.
But I tried to simplify it as much as possible to the basic piece
which will not compile, which is what I provided in my last message.
I suspect that if I could get the sample code (where A contains Aptr)
working, then I'd be able to get my entire program serialized.
> The following would seem to be equivalent to your intention
Unfortunately, I have to use smart_ptr's. Otherwise, managing object
deletion will be extremely complicated.
> I think you would find that spending some more time
> with the documentation and the examples would be
> a good investment.
I agree; I'm trying to understand the serialization library better so
that I can answer my own questions. Nonetheless, if you are able to
suggest a way to get serialization to work with class A containing
static member variables of type boost::shared_ptr<A>, I'd be most
Thanks for your help so far.
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