> performs the
> 
> if (inset != NULL) ...
> 
> internally so it is _never_ needed to do 
> 
> if (inset) delete inset;
> 
> That code construct just shows that you don't know what delete is
> doing.
> 

Well you are right I didn't know this :)

>| but what I really would like to know is WHY does the constructor not
>| work?
> 
> You cannot use a constructor on an array allocation.
> 

Why does it work then? Can we use another construct, I'm thinking about
a vector or something like this. I just need a construct where I can insert
elments in the middle too (not just at the end or the beginning).

I just need some help to be able to use STL containers, but I would like
to change the code to use them!

     Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna                      E-Mail: [EMAIL PROTECTED]
Italienallee 13/N                     Tel:    +39-0471-450260
I-39100 Bozen                         Fax:    +39-0471-450296
ITALY                                 Web:    http://www.sad.it/~jug

No excellent soul is exempt from a mixture of madness.
                -- Aristotle

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Reply via email to