Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---CODE---
- typedef long Weight;
- typedef property<edge_weight_t, Weight> EdgeWeightProperty;
- typedef boost::adjacency_list<listS, vecS, directedS, allow_parallel_edge_tag, EdgeWeightProperty> Graph;
- typedef boost::graph_traits<Graph>::vertex_descriptor Vertex;
- typedef boost::graph_traits<Graph>::vertex_iterator VertexIterator;
- typedef boost::graph_traits<Graph>::edge_descriptor Edge;
- typedef boost::property_map<Graph, boost::vertex_index_t>::type IndexMap;
- typedef boost::property_map<Graph, boost::vertex_name_t>::type NameMap; // This line causes an error
- ---ERROR---
- In file included from /usr/include/boost/graph/adjacency_list.hpp:246:0,
- from north.cpp:8:
- /usr/include/boost/graph/detail/adjacency_list.hpp: In instantiation of 'struct b
- oost::vec_adj_list_any_vertex_pa::bind_<boost::vertex_name_t, boost::adjacency_li
- st<boost::listS, boost::vecS, boost::directedS, boost::allow_parallel_edge_tag, b
- oost::property<boost::edge_weight_t, long int> >, boost::allow_parallel_edge_tag>
- ':
- /usr/include/boost/graph/detail/adjacency_list.hpp:2591:12: required from 'stru
- ct boost::detail::vec_adj_list_choose_vertex_pa<boost::vertex_name_t, boost::adja
- cency_list<boost::listS, boost::vecS, boost::directedS, boost::allow_parallel_edg
- e_tag, boost::property<boost::edge_weight_t, long int> >, boost::allow_parallel_e
- dge_tag>'
- /usr/include/boost/graph/detail/adjacency_list.hpp:2717:12: required from 'stru
- ct boost::vec_adj_list_vertex_property_selector::bind_<boost::adjacency_list<boos
- t::listS, boost::vecS, boost::directedS, boost::allow_parallel_edge_tag, boost::p
- roperty<boost::edge_weight_t, long int> >, boost::allow_parallel_edge_tag, boost:
- :vertex_name_t>'
- /usr/include/boost/graph/properties.hpp:217:12: required from 'struct boost::de
- tail::vertex_property_map<boost::adjacency_list<boost::listS, boost::vecS, boost:
- :directedS, boost::allow_parallel_edge_tag, boost::property<boost::edge_weight_t,
- long int> >, boost::vertex_name_t>'
- /usr/include/boost/graph/properties.hpp:228:10: required from 'struct boost::pr
- operty_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boo
- st::allow_parallel_edge_tag, boost::property<boost::edge_weight_t, long int> >, b
- oost::vertex_name_t>'
- north.cpp:76:57: required from here
- /usr/include/boost/graph/detail/adjacency_list.hpp:2540:29: error: forming refere
- nce to void
- typedef value_type& reference;
- ^
- /usr/include/boost/graph/detail/adjacency_list.hpp:2541:35: error: forming refere
- nce to void
- typedef const value_type& const_reference;
- ^
- /usr/include/boost/graph/detail/adjacency_list.hpp:2544:55: error: forming refere
- nce to void
- <Graph, Graph*, value_type, reference, Tag> type;
- ^
- /usr/include/boost/graph/detail/adjacency_list.hpp:2546:67: error: forming refere
- nce to void
- <Graph, const Graph*, value_type, const_reference, Tag> const_type;
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement