Deprecating min/max extension in C++

Giovanni Bajo rasky@develer.com
Wed Mar 9 16:38:00 GMT 2005


Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:

>> Because the example was just an example. In real code, "3" is probably a
>> variable of integer type, and "4.0f" is probably a variable of floating
>> point type.
>
> Which we have not seen yet, for the purpose of assessing the purpoted
> usefulness in real codes.  Arguments are easily made with xyz examples.


Are you disputing the usefulness of promotion rules with operators? If you
agree that promotion is useful, I cannot see why it should not be for
min/max operators.
-- 
Giovanni Bajo



More information about the Gcc mailing list