[BGL] Is adjacency_iterator not Equality Comparable?

Dear all,
[Boost 1.42, GCC 3.4.5 under MinGW in WinXP]
I have a piece of program like this:
typedef graph_type::adjacency_iterator iterator;
iterator begin, end;
boost::tie(begin, end) = boost::adjacent_vertices(curr_, *graph_ptr_);
//...
ArrFreq nextArr = l.front();
//...
iterator i = find(begin, end, nextArr);
And, I get the error message in the P.S. once I try the last line above. I was wondering if that's because:
1) adjacency_iterator is not equality comparable. Or,
2) the value type of adjacency_iterator is not comparable with the graph's vertex type. Or,
3) even something else?
TIA,
--Hossein
P.S.
/lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algo.h:172: error: no match for 'operator==' in '((boost::iterator_facade

On Tue, 18 May 2010, Hossein Haeri wrote:
Dear all,
[Boost 1.42, GCC 3.4.5 under MinGW in WinXP]
I have a piece of program like this:
typedef graph_type::adjacency_iterator iterator; iterator begin, end; boost::tie(begin, end) = boost::adjacent_vertices(curr_, *graph_ptr_); //... ArrFreq nextArr = l.front(); //... iterator i = find(begin, end, nextArr);
And, I get the error message in the P.S. once I try the last line above. I was wondering if that's because:
1) adjacency_iterator is not equality comparable. Or, 2) the value type of adjacency_iterator is not comparable with the graph's vertex type. Or, 3) even something else?
Could you please send a complete program that I can try to compile here? GCC 3.4.5 is old and I'd like to see if the issue occurs on newer versions. -- Jeremiah Willcock
participants (2)
-
Hossein Haeri
-
Jeremiah Willcock