Hi,
Having fallen into the trap of allocating memory, and never freeing it, I have found 'auto_ptr' which handles some of these problems of memory allocation/freeing for me.
Is this a good tool to use, or not? Are there other template classes which do similar things? Can anyone recommend a source where I can read more about this?
Thanks
Having fallen into the trap of allocating memory, and never freeing it, I have found 'auto_ptr' which handles some of these problems of memory allocation/freeing for me.
Is this a good tool to use, or not? Are there other template classes which do similar things? Can anyone recommend a source where I can read more about this?
Thanks