$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?
struct inner
{
//...
};
struct outer
{
inner inner_;
};
Do you mean that one can make shared_ptr<inner> from shared_ptr<outer>?