Boost logo

Boost Users :

From: John Reid (j.reid_at_[hidden])
Date: 2007-06-18 05:37:59


Ok unfortunately with the now latest SVN version my code belows never
returns from the copy(g) call. This is on Windows XP with boost 1.34.
I've reverted to version 334 of pickle.cpp and it works again.

Any clues?

John.

Douglas Gregor wrote:
> On Jun 8, 2007, at 6:48 AM, John Reid wrote:
>
>> Hi,
>>
>> When a graph is copied via copy.copy(g), extra vertex and edge
>> property
>> maps are added.
>>
>> import boost.graph as bgl
>> g = bgl.Graph()
>> prop = g.add_vertex_property('prop')
>> from copy import copy
>> g_copy = copy(g)
>> print g.vertex_properties.keys()
>> print g_copy.vertex_properties.keys()
>>
> Definitely a bug, which was in the "unpickling" routines. I believe
> I've fixed this in Subversion.
>
> - Doug


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