Because the buffer that belongs to another array is not a new allocation. You can replace the buffer and that’s fine. You just can’t stick the buffer of another array in.
And also as I said, resize won’t work for non-1d array.
Because the buffer that belongs to another array is not a new allocation. You can replace the buffer and that’s fine. You just can’t stick the buffer of another array in.
And also as I said, resize won’t work for non-1d array.