
28 Aug
2006
28 Aug
'06
1:52 p.m.
On Aug 27, 2006, at 12:12 PM, Bruno MartÃnez wrote:
I'm getting uninitialized memory errors in a program that uses Boost.Graph. This happens because add_edge(u, v, g) calls add_edge (u, v, p, g) copying a default constructed edge property. The no argument constructor for property in directory pending is:
property() { }
so if T is a primitive type it is left uninitialized. I think this should be changed to
property() : m_value() { }
Yes, you're right. This is fixed in Boost CVS for 1.34.0. Doug