auto_ptr converted to unique_ptr all over