C++ Logo

std-discussion

Advanced search

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

From: Brian Bi <bbi5291_at_[hidden]>
Date: Wed, 6 Nov 2019 16:21:29 -0600
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.
-- 
*Brian Bi*

Received on 2019-11-06 16:23:59