Giovanni Bajo wrote:
... which do not handle promotions. So you do not consider useful to have a min/max operator with promotion (so that it would work exactly like any other operator) just because there is a cheap version without promotion. And my statement that min() and max() are not exact replacements still stands.
We'll disagree, as happens.
Since there is no exact replacements (especially for the min/max assignment operators), and the extensions are definitely not so troublesome, I would like them to stay.
There are thousands of things that you can think of that would be marginally convenient in a complex language like C++ (or Ada for that matter), but that's not a justification tyo add them as an extension. THe burden of adding an extension should be pretty high. I don't think this particular extension meets that requirement.