Boost logo

Boost Users :

From: Shufei Fan (fansf_at_[hidden])
Date: 2007-02-22 15:24:17


This question is regarding to BGL, I should have included it on the title.
Actually, thank goes to Aaron Windsor.
 

From: fansf_at_hotmail.comTo: boost-users_at_lists.boost.orgSubject: How to access bundled properties individually?Date: Thu, 22 Feb 2007 19:39:10 +0000

First, Thank Doug for answering my previous question on parallel edges. Now, my question is:How to access bundled property individually?
I defined my graph like this:

struct Node{ int label; int mode[3]; //...;};struct Edge{ double nCommBord;}; typedef boost::adjacency_list< boost::setS, boost::vecS, boost::undirectedS, Node, Edge> Graph;but when I want to access property nCommBord of Edge, there seems to be wrong with my property_map type definition. Anyone can point out for me, what is the right version(I cannot seem to find any comment on this kind of usage)? //get edgeWeight propertyproperty_map<Graph, &Edge::nCommBord>::type p_e = get(&Edge::nCommBord, *rowGraph); The error:c:\...\VCProjects\...xxx.cpp(55) : error C2974: 'boost::property_map' : invalid template argument for 'Property', type expected c:\Boost\include\boost-1_33_1\boost\graph\properties.hpp(205) : see declaration of 'boost::property_map'Thanks, Shufei

Connect to the next generation of MSN Messenger Get it now!
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net