This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Deprecating min/max extension in C++


Olivier Galibert <galibert@pobox.com> writes:

| On Wed, Mar 09, 2005 at 07:04:39AM +0100, Gabriel Dos Reis wrote:
| > That is a rather weak argument.  What is the type of the argument if
| > it were possible?
| 
| float obviously.  You follow the standard promotion/type resolution
| rules you already handle for operators like +.  Done correctly,
| min/max are operators too.

Nobody is disputing that min/max are operators.  However, the point is
that both min and max have a uniform requirement as far as the types
of their operands are concerned.  The rest of the message you left out
have questions you did not address.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]