Removed auto_ptr to avoid deprecation warnings in newer compilers.

[SVN r86749]