C++ Logo

std-discussion

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 07 Nov 2019 06:59:57 -0800
On Thursday, 7 November 2019 03:17:15 PST Shachar Shemesh wrote:
> I don't think "slow" is acceptable. There's WAY too much code that performs
> comparisons between signed and unsigned that would be affected.
> Then how about "error out"?

-Werror=sign-compare and see how far you can get.

As I said, WAY too much code doing that.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products

Received on 2019-11-07 09:02:22