Boost logo

Boost Users :

Subject: Re: [Boost-users] BGL: Problem to compile components_on_edgelist.cpp example.
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-05 14:51:46


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,boost::typed_identity_property_map<T>>(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<size_t>
> 1> ]
> and more...
>
> Are there some work around ?
>
> Actually I would like to construct disjoint sets based on vector<Edge>,
> where Edge is pair<uint, uint>.

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


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