passing clipped vector as auto_ptr