29 Sep
2005
29 Sep
'05
12:06 p.m.
On 9/29/05, David Abrahams
Try compiling and running the example, then try compiling and running your "somewhat summarized" version. Notice anything? When your version crashes, it will reveal to you the important things you left out: our example initializes all those pointers to refer to valid locations first.
Aha, indeed. And when I initialize the second 'empty' vector with zeros, it works indeed. Now I get it, thanks. P.S. I ordered your book and it arrived in the mail yesterday, so maybe I won't be posing so many stupid questions here any more in the near future :-) -- Alex Borghgraef