
On 4/15/07, Shufei Fan
Stephan Diederich
writes: Hi Shufei,
On 4/10/07, Shufei Fan
wrote: [snip] I found out later that a member defined in my class GA was causing the compiling error:
This seems to work for me (currently on apple's gcc 4.01):
struct GA { Graph *rowGraph; boost::property_map
::type nmt; GA():rowGraph(0){ rowGraph = new Graph(); nmt = get(&Node::count, *rowGraph); };
~GA(){ if(rowGraph) delete rowGraph; } };
HTH, Stephan
Are you saying initialize the property-pointer in the class GA's constructor?
I just wanted to get a working example ;)
I tried this, I am on windows vc2003.net, but that still doesnot compile. I've switched to using local variable instead(although more local definitions, but easier to get it work anyway)
Maybe we can get Doug (the one who made the Bundled Properties) to comment on this... Cheers, Stephan