One of the goals of auto_ptr is to prevent multiple deletes.
The auto_ptr passes ownership of an underlying pointer around so that only the auto_ptr object that owns the pointer will delete the object.
Friday, December 3, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment