> On 29 Oct 2019, at 21:30, Akim Demaille <[email protected]> wrote: > > + In C++, line numbers and columns are now represented as 'int' not > + 'unsigned', so that integer overflow on positions is easily checkable via > + 'gcc -fsanitize=undefined' and the like. This affects the API for > + positions.
There is std::streamoff for indicating file positions, it is signed, and can represent the maximum file size. By contrast, int can overflow on modern 64-bit computers. https://en.cppreference.com/w/cpp/io/streamoff
