|
Boost : |
Subject: Re: [boost] Current Guidance on Compiler Warnings?
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2018-11-24 18:36:57
On Sat, Nov 24, 2018 at 3:44 AM Jayesh Badwaik via Boost <
boost_at_[hidden]> wrote:
>
> On Friday, 23 November 2018 20:58:44 CET Emil Dotchevski via Boost wrote:
> > So you change that to:
> >
> > if( static_cast<unsigned>(x) < f() )
>
> I would change the opposite, I would do
>
> if( x < static_cast<int>(f()))
>
> then, if the type of `x` changed in the function, I will now get a new
> warning, and I can fix it.
What warning will you get?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk