Vector.ptr should be inout.