
26 Mar
2010
26 Mar
'10
6:36 p.m.
On Mar 26, 2010, at 5:42 AM, Andrew Sutton wrote:
The "easy" workaround is to simply have the graph refer to BasicBlock by pointer instead of actually owning it. Pointers are definitely default and copy constructible :)
Yes, I had tried that, and the pointers are added to the graph okay using add_vertex, but when I try to pull them out using, say, graph[0], my program segfaults. I have no idea what I'm doing wrong.
I might caution you about using directed_graph. It's built over adjacency_list
so it might not be usable quite the same way that most of the documentation is listed.
So instead of:
typedef directed_graph