
21 Oct
2004
21 Oct
'04
1:23 p.m.
"Cromwell Enage" <sponage@yahoo.com> 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