P
Peter Nilsson
Yingjian said:this substraction never fails
Yes, it can.
The sizes of ptrdiff_t and size_t are incidental.
What I actually said was "...if the object were bigger than PTRDIFF_MAX
bytes. [Note that PTRDIFF_MAX is typically smaller than SIZE_MAX.]"