Hi all,
It's my first time submitting a question on a newsgroup so pardon me if I'm
wrong in my way of doing.
I have a graph of type BoostGraph_t defined like
typedef boost::adjacency_list BoostGraph_t;
with vertex and edge properties types defined as pointer on the following
stuctures
struct EdgeProperty {
long m_id;
double m_length;
};
struct NodeProperty {
long m_id;
};
I'm now trying to use the dijkstra_shortest_paths() function with the edge
length as parameter for the weigh_map function argument. But the call to the
following function
get(&EdgeProperty::m_length, m_graph);
returns me the following errors
******
e:\Boost\boost\graph\properties.hpp(337) : error C2825: 'Bundle::*': cannot
form a qualified name
e:\Boost\boost\graph\properties.hpp(337) : error C2226: syntax error :
unexpected type 'Graph'
e:\Boost\boost\graph\properties.hpp(337) : error C2334: unexpected token(s)
preceding ':'; skipping apparent function body
e:\Boost\boost\graph\properties.hpp(342) : error C2825: 'Bundle::*': cannot
form a qualified name
e:\Boost\boost\graph\properties.hpp(342) : error C2657: '`global namespace'::*'
found at the start of a statement (did you forget to specify a type?)
e:\Boost\boost\graph\properties.hpp(342) : error C2653: 'operator``global
namespace''' : is not a class or namespace name
e:\Boost\boost\graph\properties.hpp(342) : error C2501:
'boost::bundle_property_map::pm' : missing
storage-class or type specifiers
with
[ Graph=boost::adjacency_list,
Descriptor=boost::property_map,
double EdgeProperty::* >::descriptor,
Bundle=boost::property_map,
double EdgeProperty::* >::actual_bundle,
T=double
]
******
I know it's working correctly if I use NodeProperty and EdgeProperty for graph
template arguments instead of pointers. But I would like to know if it's
possible to do it in that way and how would be the correct syntax for the get()
to work properly.
Many thanks in advance for your help!
~Benoît