C++ Logo

std-discussion

Advanced search

Re: Did the standard committee vote to make integer comparisons do the right thing?

From: Michael Spencer <bigcheesegs_at_[hidden]>
Date: Wed, 6 Nov 2019 15:38:14 -0800
On Wed, Nov 6, 2019 at 2:21 PM Brian Bi via Std-Discussion <
std-discussion_at_[hidden]> wrote:

> On March 13, 2018, I was told that the standard committee voted 5/17/5/4/0
> to make integer comparisons do the right thing, e.g., `-1 < 0U` will become
> true, whereas in C++17, it is false thanks to the "usual arithmetic
> conversions"
>
> However, looking through the lists of proposals from 2017 through 2019 on
> the WG21 website, and at the wording of the current draft, I can't find any
> evidence that such a change was made.
>

There was a vote supporting someone coming with a paper that
investigated that direction. We've yet to actually get the paper.

- Michael Spencer

Received on 2019-11-06 17:40:45