The "explicit" in the declaration: explicit auto_ptr(T* p = 0) throw(); means that a pointer to T will not automatically be cast by the compiler to auto_ptr and that an auto_ptr constructor
needs to be explicitly constructed.
You do not want pointers to be automatically converted to auto_ptrs.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment