
28 Jun
2007
28 Jun
'07
1:35 p.m.
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?