Juergen Vigna <[EMAIL PROTECTED]> writes:
| > 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?
I'd say by coincidence.
| 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).
a vector<vector<cellstruct> > might work, or a Matrix class that build
upon this.
| I just need some help to be able to use STL containers, but I would like
| to change the code to use them!
Good.
Lgb