auto_ptr to unique_ptr (no more warnings)