Re: [locale] Loss of precision (C4244) warnings in MSVC 64-bit build
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.