Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Is adjacency_iterator not Equality Comparable?
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-05-19 18:44:31


Dear Jeremiah,

> What about this (not tested)?
>
> typedef property<graph_type,
> vertex_bundle_t>::const_type pm_type;

The above line didn't work so I changed property<> to property_map<>. But, the rest of your code doesn't compile either. Please find the build-log in the P.S. Any suggestions?

TIA,
--Hossein

P.S.

main.cpp:69: error: no matching function for call to 'boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::vertex_bundle_t>::vec_adj_list_vertex_property_map(boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>, boost::adjacency_list<boost::vecS,
 boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::vertex_bundle_t>)'

/boost/graph/detail/adjacency_list.hpp:2504: note: candidates are: boost::vec_adj_list_vertex_property_map<Graph, GraphPtr, ValueType, Reference, Tag>::vec_adj_list_vertex_property_map(GraphPtr) [with Graph = boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>, GraphPtr = const boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>*, ValueType = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Reference = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, Tag = boost::vertex_bundle_t]

/boost/graph/detail/adjacency_list.hpp:2503: note: boost::vec_adj_list_vertex_property_map<Graph, GraphPtr, ValueType, Reference, Tag>::vec_adj_list_vertex_property_map() [with Graph = boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>, GraphPtr = const boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>*, ValueType = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Reference = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, Tag = boost::vertex_bundle_t]

/boost/graph/detail/adjacency_list.hpp:2498: note: boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::vertex_bundle_t>::vec_adj_list_vertex_property_map(const boost::vec_adj_list_vertex_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>, const
 boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property, boost::no_property, boost::listS>*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, boost::vertex_bundle_t>&)

main.cpp:78: error: 'vertex_descriptor' was not declared in this scope

main.cpp:78: error: expected ';' before 'v'


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