Boost logo

Boost Users :

Subject: Re: [Boost-users] [graph] Problem with vertex initialization in boost::add_vertex()
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-04-06 13:43:13


On Fri, 6 Apr 2012, Philipp Klaus Krause wrote:

> On 05.04.2012 16:06, Jeremiah Willcock wrote:
>>> To me it seems as if the default constructor of alive is not called upon
>>> add_vertex(), resulting in alive being uninitialized memory (same for
>>> dying).
>>
>> Could you please add a hand-written default constructor that prints
>> something out to be sure of that?
>
> Is there an easy way to do this? I'm not a C++ expert. alive is an
> std::set, so I would have to edit my STL headers?

I mean just putting in a default constructor for your whole class, not
necessarily each member of it.

-- Jeremiah Willcock


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