c++98

changed unique_ptr to auto_ptr