|
Boost : |
From: David M. Jones (djones_at_[hidden])
Date: 2004-10-21 08:23:44
"Cromwell Enage" <sponage_at_[hidden]> wrote:
>
> I'm curious as to where one would use g = g.
>
I have written a helper class that holds a reference to a
boost::adjacency_list object. When writing the assignment operator for that
class, I (apparently naively) called
this.m_g = other.m_g;
In this case, my helper class should hold a pointer rather than a reference.
That way I can copy an address rather than copying an object, which is what
I really want anyway.
I guess this is a rather long-winded way of saying: I don't know of a
situation where one would use g = g.
Thanks for your reply,
David
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk