Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2019-07-24 07:09:03

On 24/07/2019 17:08, Kenneth Porter wrote:
> Building with MSVC compilers for 64-bit results in several C4244
> warnings in api.hpp, due to passing the difference of two pointers
> (ptrdiff_t) to Win APIs expecting an int.
> Patch here:
> <>

You should probably make that into a pull request, rather than an issue
with a patch file attached.

Also, static_cast is probably preferred over C-style casts.

Ideally you should probably BOOST_ASSERT that the result of the
subtraction fits into an int, as well; just to be safe.

Boost list run by bdawes at, gregod at, cpdaniel at, john at