Boost Users :
Subject: Re: [Boost-users] shared_ptr design question
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-20 10:43:49
> shared_ptr also has an aliasing copy constructor, where you can give it an
> arbitrary pointer. Â So, you might make a shared_ptr that points at a struct
> and a shared_ptr that points at a member of the same struct, but they both
> share the same reference count and deleter.
Could you elaborate a bit?
Do you mean that one can make shared_ptr<inner> from shared_ptr<outer>?
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