Re: Minimum/maximum operators are deprecated?
Giovanni Bajo [EMAIL PROTECTED] writes: Steven Bosscher [EMAIL PROTECTED] wrote: It was an ill-defined and poorly maintained language extension that was broken in many cases. That's an overstatement. I've been using it for years without any problem, and was very deprived by its removal, though I can understand the we don't want extensions reason. But that's really the only compelling one that prompted its removal. It's quite common that extensions work just fine except maybe for a few rare cases for some people and are horribly broken with severe design flaws for other people. This follows the 99% rule of compiler design, which is that if a design 99% works, you'll get 100% more bug reports from 1% of your users.
Re: Minimum/maximum operators are deprecated?
Steven Bosscher [EMAIL PROTECTED] wrote: It was an ill-defined and poorly maintained language extension that was broken in many cases. That's an overstatement. I've been using it for years without any problem, and was very deprived by its removal, though I can understand the we don't want extensions reason. But that's really the only compelling one that prompted its removal. Giovanni Bajo
Minimum/maximum operators are deprecated?
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 ?= and ?= . 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?
On Saturday 10 September 2005 13:48, Gunther Piez wrote: 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 ?= and ?= . 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? It was an ill-defined and poorly maintained language extension that was broken in many cases. Proper replacements exist in standard C++: From http://gcc.gnu.org/onlinedocs/gcc-4.0.1/gcc/Deprecated-Features.html: The G++ minimum and maximum operators (`?' and `?') and their compound forms (`?=') and `?=') have been deprecated and will be removed in a future version. Code using these operators should be modified to use std::min and std::max instead. Gr. Steven
Re: Minimum/maximum operators are deprecated?
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? Your best hope to get a bug fixed is to submit it to bugzilla with a minimal testcase. Hopefully some kind volunteer will spend their valuable time to fix it. But if you don't report it, tough, don't complain about it... -- Peter Barada [EMAIL PROTECTED]