Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Can't correctly copy data
From: Caligula (caligulaemperorofrome_at_[hidden])
Date: 2009-08-12 19:04:29


This was my error

typedef typename property_map < Graph, edge_Weight_t >::type EdgeWeightMap;
                EdgeWeightMap eWeight_map, eWeightCopy_map;

I needed separate types for each map as below.

 typedef typename property_map < Graph, edge_Weight_t >::type EdgeWeightMap;
                EdgeWeightMap eWeight_map;
               
typedef typename property_map < Graph, edge_WeightCopy_t >::type EdgeWeightCopyMap;
 EdgeWeightCopyMap eWeightCopy_map;

AStorm gave me the answer on the boost IRC chat. I don't know if I would have ever figured it out for myself, It seems a little tricky for noobies.

Thanks
-Caligula

--- On Wed, 8/12/09, Andrew Sutton <andrew.n.sutton_at_[hidden]> wrote:

From: Andrew Sutton <andrew.n.sutton_at_[hidden]>
Subject: Re: [Boost-users] [BGL] Can't correctly copy data
To: boost-users_at_[hidden]
Date: Wednesday, August 12, 2009, 4:23 AM

There may be something going on with the properties. Does the problem persist if you use bundled properties?

http://www.boost.org/doc/libs/1_39_0/libs/graph/doc/bundles.html

Andrew Sutton
andrew.n.sutton_at_[hidden]

-----Inline Attachment Follows-----

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users



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