If i use auto_ptr to hold a pointer to a dynamically allocated array, when the auto_ptr gets killed it will use a plain delete operation and not delete[] thus not deleting my allocated array.
How can i (properly) use auto_ptr on dynamically allocated arrays?
If this is not possible, is there another smart pointer alternative for dynamically allocated arrays?
Thanks in advance.