On Wed, 5 May 2010, arm2arm wrote:
Hello, I cannot compile the components_on_edgelist.cpp example with gcc 4.5/4.2 and VC++2009. I am using Boost 1.42 It trows errors on
c:\boost\include\boost-1_42\boost\graph\incremental_components.hpp(178) : error C2825: 'ParentIterator': must be a class or namespace when followed by '::' 1> c:\boost\include\boost-1_42\boost\graph\incremental_components.hpp(141) : see reference to function template instantiation 'void boost::component_index<IndexType>::build_index_lists
(ParentIterator,const ElementIndexMap &)' being compiled 1> with 1> [ 1> IndexType=int, 1> ParentIterator=const unsigned int *, 1> T=size_t, 1> ElementIndexMap=boost::typed_identity_property_map 1> ] and more... Are there some work around ?
Actually I would like to construct disjoint sets based on vector<Edge>, where Edge is pair
.
I fixed the various issues you are probably seeing with that example in the trunk just now; that version should work better. See if your code works with the new version. -- Jeremiah Willcock