On 9/29/05, David Abrahams <dave@boost-consulting.com> wrote:

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