Alf P. Steinbach wrote:
> Microsoft Visual C++ warning C4267 (the number is not a typo) can occur e.g.
> when compiling Boost Spirit, or when doing
>
> std::size_t x = 0;
> std::cout << x;
>
> when compiled with 64-bit compatibility warnings enabled.
>
> One fix is to turn off conversion warnings, another _may be_ as follows --
> I'm wondering whether someone could test this on a 64-bit machine, or have
> other comments:
>
That's an awful lot of code just to avoid a stupid warning. The code as
originally written is well defined, clear, and unambiguous. The code as
rewritten is impenetrable. Complain to Microsoft.
--
Pete Becker
Dinkumware, Ltd. (
http://www.dinkumware.com)