Hey all,
I've been having some problems inheriting from adjacency_list. My code
is real simple:
---------- 8>< ----------
#include<iostream>
#include<string>
#include
using namespace boost;
class Weighted : public adjacency_list, no_property, no_property> {
};
int main(int argc, char* argv[]) {
Weighted m;
property_map::type
pmap = get(vertex_distance, m);
return 0;
}
---------- 8>< ----------
The error is:
main.cpp: In function ‘int main(int, char**)’:
main.cpp:16: error: conversion from
‘boost
::vec_adj_list_vertex_property_map,
boost::no_property, boost::no_property, boost::listS>,
boost::adjacency_list,
boost::no_property, boost::no_property, boost::listS>*, double,
double&, boost::vertex_distance_t>’ to non-scalar type
‘boost::vec_adj_list_vertex_property_map’ requested
make: *** [main.o] Error 1
Is there some reason that this won't work? Is it a bug? If I try to
get property_maps for edge properties, I don't have problems.
Any help greatly appreciated,
-krish
--
Krishna Roskin
Center for Biomolecular Science and Engineering, UC Santa Cruz
mailto:krish@soe.ucsc.edu
http://www.soe.ucsc.edu/~krish/