[BGL] Can't correctly copy data
Hi, I've been working on this bug for a few weeks now. Its sort of a show stopper for me. I'm not able to correctly copy a simple string datum from one element to another such element. Just go to http://pastebin.com/m6f57be95 And see pastebin references. Either I'm doing something wrong or BGL is seriously flawed. Thanks Caligula
I've been working on this bug for a few weeks now. Its sort of a show stopper for me. I'm not able to correctly copy a simple string datum
from one element to another such element. Just go to
I don't see any code in link, and I'm not motivated enough to follow all of the links to reassemble and debug a program. Why don't you try reducing the problem to the smallest possible example that causes the problem and post that. Andrew Sutton andrew.n.sutton@gmail.com
The code is at
http://pastebin.com/m19513d00
Its very simple, i have reduced it to just the basics.
but you also need an input graph - its only 2 vertices and one edge.
http://pastebin.com/m4d28f922
I also included makefile , its just
g++ -O3 copy-bug.cpp -o copy-bug -I/usr/local/include -L/usr/local/lib -lexpat graphml.o
Thats all.
--- On Tue, 8/11/09, Andrew Sutton
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@gmail.com
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
Problem resolved thanks to AStorm on irc://freenode/boost stopper for me. I'm not able to correctly copy a simple string datum from one element to another such element. Just go to I don't see any code in link, and I'm not motivated enough to follow all of the links to reassemble and debug a program. Why don't you try reducing the problem to the smallest possible example that causes the problem and post that. Andrew Sutton andrew.n.sutton@gmail.com -----Inline Attachment Follows----- _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Andrew Sutton
-
Caligula
-
Stephen Woodbridge