
24 Jun
2010
24 Jun
'10
1:50 p.m.
On Wed, 23 Jun 2010, Trevor Harmon wrote:
Hi,
I've extended an adjacency list into a custom class in order to add specialized fields and convenience methods. It was working fine until I tried to call create_subgraph on it. Simplified example:
#include
#include using namespace boost;
class MyGraph : public adjacency_list
> { }; int main(int,char*[]) { MyGraph g; g.create_subgraph(); return 0; }
This gives a compiler error:
mygraph.cpp:12: error: ‘class MyGraph’ has no member named ‘create_subgraph’
I've no idea why this is giving me an error. Any suggestions? Thanks,
Is there a create_subgraph member mentioned in the documentation? Are you sure that it is not a free (non-member) function rather than a method? -- Jeremiah Willcock