Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-06-28 09:35:19


Daniel Oberhoff wrote:
> Hi all,
>
> I am using shared_ptr to ease implementation of a matlab file
> wrapper. Esepcially the fact that it is in tr1 and thus available on
> many platforms already pushed that decision. Now I was wondering about
> one thing:
>
> Is there a devent way, using shared_ptr, to hand out multiple
> references? What I mean is something like this:
>
> class Variable {
> shared_ptr<Variable> ref();
> };

How can the user access Variable::ref if he already doesn't have a reference
to Variable to start with?


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