Minimum/maximum operators are deprecated?

2005-09-10 Thread Gunther Piez
Why?

I just switched my project to gcc-4.0.1 and now i get tons of warnings :-( I 
always found the min/max operators extremly useful, especially der assignment 
variations ?= . There isn't even an replacemant for them I am aware 
of.
Hell, I even overloaded them :-) Ok, this is possible with some functions too, 
but I find it rather cumbersome (but, hey, other people use java and 
cold-blooded claim they are lucky with it).
I hoped, they would make it one day into normal C :-/
Is there a reason?


Re: Minimum/maximum operators are deprecated?

2005-09-10 Thread Gunther Piez
Am Samstag 10 September 2005 14:08 schrieben Sie:

> > Is there a reason?
>
> It was an ill-defined and poorly maintained language extension that was
> broken in many cases.  Proper replacements exist in standard C++:

I am well aware of std::min/max. But they are not what I would call a 'proper 
replacement', but that probably depends from the point of view.

I just hit an ICE when it comes to overwriting those operators. Maybe nobody 
has ever tried to do this before :-) So there is probably no point in 
submitting a bug report?

Gunther