Why not use a unique_ptr here?