Re: [Boost-users] [BGL] Is adjacency_iterator not Equality Comparable?

Dear Jeremiah,
Could you please send a complete program that I can try to compile here?
Please find a minimalist (but different) example in the attachments. I currently do know what's wrong but it's probably still better for my next question to attach the file. Consider the following line in my attached code: iterator pos = find(begin, end, "3"); I know that this line doesn't compile because the value type of vertex iterator is not necessarily the same as VertexProperties. But, then, is there a simple way to find the vertex iterator that points to "3"? (I mean something as succinct as the above line of code. I DO already know that it's possible to pass an ugly function object to help find(). But, that's far too ugly.) TIA, --Hossein

Please find a minimalist (but different) example in the attachments. I currently do know what's wrong but it's probably still better for my next question to attach the file. Consider the following line in my attached code:
iterator pos = find(begin, end, "3");
I know that this line doesn't compile because the value type of vertex iterator is not necessarily the same as VertexProperties. But, then, is there a simple way to find the vertex iterator that points to "3"? (I mean something as succinct as the above line of code. I DO already know that it's possible to pass an ugly function object to help find(). But, that's far too ugly.)
What about this (not tested)?
typedef property

Dear Jeremiah,
What about this (not tested)?
typedef property
::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
participants (2)
-
Hossein Haeri
-
Jeremiah Willcock