unique_ptr is applied while auto_ptr is deprecated (compiler info)