Boost logo

Boost :

Subject: Re: [boost] Current Guidance on Compiler Warnings?
From: Robert Ramey (ramey_at_[hidden])
Date: 2018-11-25 02:14:37


On 11/24/18 3:11 PM, Emil Dotchevski via Boost wrote:
> On Sat, Nov 24, 2018 at 11:18 AM Robert Ramey via Boost <

> In C and C++ operands are not promoted to the same type. If you have:
>
> short x, y;
>
> the type of the expression x+y is not short, it is int.

Right. They are both promototed to the same type. That type is int.

>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk