Boost logo

Boost Users :

From: Wintermantel , Marc (marc.wintermantel_at_[hidden])
Date: 2002-03-21 16:37:43


Hello Jeremy,

 

Thank you for your quick answer. Unfortunately I'm not so experienced
with these property maps. Could you give me a hint how to wrap this
iterator_property_map around my vector::iterator?

 

Yours truly,

 

Marc Wintermantel

 

-----Original Message-----
From: Jeremy Siek [mailto:jsiek_at_[hidden]]
Sent: Wednesday, March 20, 2002 2:40 PM
To: Boost-Users_at_[hidden]
Subject: Re: [Boost-Users] BFS-visitor with gcc3.0.1

 

Hi Marc,

I think your problem is that BGL has get() and put() property map
functions defined for pointers, but vector::iterator is not guaranteed
to
be a pointer.

The fix is to wrap vector::iterator using the iterator_property_map
class.

Cheers,
Jeremy

On Wed, 20 Mar 2002, Wintermantel , Marc wrote:

marc.w> Hello,
marc.w>
marc.w>
marc.w>
marc.w> I tried to complile the following code that worked under gcc
2.95.3
marc.w> under gcc 3.0.1 and got tons of error messages:
marc.w>
marc.w>
marc.w>
marc.w> typedef adjacency_list<
marc.w>
marc.w> setS,
marc.w>
marc.w> vecS,
marc.w>
marc.w> undirectedS,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_color_t,
marc.w>
marc.w> default_color_type,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_degree_t,
marc.w>
marc.w> int,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_current_degree_t,
marc.w>
marc.w> int,
marc.w>
marc.w> property<
marc.w>
marc.w> vertex_priority_t,
marc.w>
marc.w> int > > > > > Graph;
marc.w>
marc.w>
marc.w>
marc.w> ...
marc.w>
marc.w>
marc.w>
marc.w> std::vector<graph_traits<Graph>::vertices_size_type>
marc.w> dist(num_vertices(G), 0);
marc.w>
marc.w>
marc.w>
marc.w> breadth_first_search
marc.w>
marc.w> (G, e, visitor
marc.w>
marc.w> (
marc.w>
marc.w> make_bfs_visitor(record_distances(dist.begin(),
marc.w> on_tree_edge() ) )
marc.w>
marc.w> )
marc.w>
marc.w> );
marc.w>
marc.w>
marc.w>
marc.w> ...
marc.w>
marc.w>
marc.w>
marc.w> The errors have something to deal with the visitors, more I
could not
marc.w> read out of the errors. When I use a simple array in the form
int d[n]
marc.w> it works.
marc.w>
marc.w>
marc.w>
marc.w> Yours truly,
marc.w>
marc.w>
marc.w>
marc.w> Marc Wintermantel
marc.w>
marc.w>
marc.w>
marc.w>
marc.w>
marc.w> Marc Wintermantel
marc.w>
marc.w> IMES - Structures Technology
marc.w>
marc.w> ETH Zurich, LEO C4
marc.w>
marc.w> Leonhardstrasse 27
marc.w>
marc.w> CH- 8092 Zurich
marc.w>
marc.w> Tel. ++41 1 633 35 32
marc.w>
marc.w> Fax. ++41 1 632 17 02
marc.w>
marc.w>
marc.w>
marc.w>
marc.w>
marc.w> [Non-text portions of this message have been removed]
marc.w>
marc.w>
marc.w>
marc.w>
marc.w> Info: <http://www.boost.org>
marc.w> Wiki:
<http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
marc.w> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
marc.w>
marc.w>
marc.w> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
marc.w>
marc.w>

----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------

Yahoo! Groups Sponsor

ADVERTISEMENT
 
<http://rd.yahoo.com/M=215002.1818248.3328688.1261774/D=egroupweb/S=1705
006788:HM/A=847665/R=0/*http:/ads.x10.com/?bHlhaG9vbW9uc3RlcjcuZGF0=1016
631646%3eM=215002.1818248.3328688.1261774/D=egroupweb/S=1705006788:HM/A=
847665/R=1>

 
<http://us.adserver.yahoo.com/l?M=215002.1818248.3328688.1261774/D=egrou
pmail/S=1705006788:HM/A=847665/rand=597375913>

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .

[Non-text portions of this message have been removed]


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