There are four points in the book, as shown below:
1. You cannot share ownership between auto_ptrs.
This is easy to understand. Two auto_ptrs have the same object. If one of them deletes the object at a certain time point, the other naturally becomes a wild pointer, and then it is used for read/write memory, the consequences will be very serious.
2. There is no auto_ptrs designed for array.
The reason is very simple, because the auto_ptr source code uses Delete instead of Delete [] to release the memory of all objects.
3. auto_ptrs is not a "universal" smart pointer
Because auto_ptr is not a smart pointer based on reference counting technology.
4. auto_ptrs does not meet the requirements of STL containers for its elements
This is also easy to understand, because for this intelligent pointer that is not very useful, her copy and assign semantics will make you feel uncomfortable, because it involves a question of ownership transfer. therefore, please do not use her as an element of the standard container.