Re: Help with strange (for me) STL problem that disappers when rebuilding all
Salt_Peter wrote:
On Apr 29, 2:11 pm, Salt_Peter <pj_h...@yahoo.com> wrote:
On Apr 29, 10:47 am, StephQ <askmeo...@mailinator.com> wrote:
I have a class Bounds with two constructors:
class Bounds
{
private:
list<Segment> upperLinearSpline; // Upper bound.
list<Segment> lowerLinearSpline; // Lower bound.
...
}
Bounds::Bounds()
{
}
Bounds::Bounds : upperLinearSpline(), lowerLinearSpline()
typo:
Bounds::Bounds() : upperLinearSpline(), lowerLinearSpline()
[..]
Since both 'Spline' things are standard list containers, there is
no need to initialise them explicitly, the default initialisation
should work just fine.
Always initialize all your members, thats not the compiler's job -
its yours. You've not shown enough code to detect any other issues.
You've not detected any issues. Neither have I, but I didn't look.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask