Original Post
Hi everyone... Assume I have a simple augmented template array class that stores the size of the array along with the data. It might look something like this...
Now, my array class has (essentially) the following constructor and destructor
Now, everything works fine and dandy EXCEPT if L=1, in which case the call to the array version of delete throws an exception (which I can't seem to get my Borland debugger to catch 8( ). It doesn't seem to make any difference whether I declare the destructor as virtual or not. What stupid mistake have I made in this. I feel that it is something really obvious, but I'm very tired and rather ill with a virus at the moment and I should be in bed rather than coding... but my software calls... can someone please point out my mistake and ease my suffering? Thanks eternally, Timkin
|
|