From -368761256394741102
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,d93488bb970aa444
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-06-12 11:34:02 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
Newsgroups: comp.std.c++
Subject: Re: How to test for NaNs and infinites?
Date: Tue, 12 Jun 2001 18:33:48 GMT
Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <fl7kyi5769.fsf@jambon.cmla.ens-cachan.fr>
References: <3B176D2F.70C3E7F7@meteo.fr> <usrihtkqfjd9qfj2bgtbp6pj530asi567k@4ax.com> <b172eb2f.0106071330.5f984936@posting.google.com> <9fql8h$pfg$1@news.hal-pc.org> <3B21100E.5B25F7AA@acm.org> <9frdlp$14bc$1@news.hal-pc.org> <fl3d9ail4o.fsf@sel.cmla.ens-cachan.fr> <9g2em7$1pkk$1@news.hal-pc.org>
X-Trace: mail2news.demon.co.uk 992370834 mail2news:11946 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
NNTP-Posting-Date: Tue, 12 Jun 2001 10:22:39 +0000 (UTC)
X-Newsreader: Gnus v5.6.45/Emacs 19.34
Lines: 21
Xref: archiver1.google.com comp.std.c++:5981

"Greg Brewer" <nospam.greg@brewer.net> writes:

| "Gabriel Dos Reis" <dosreis@cmla.ens-cachan.fr> wrote in message
| news:fl3d9ail4o.fsf@sel.cmla.ens-cachan.fr...
| > "Greg Brewer" <nospam.greg@brewer.net> writes:
| > Then would you mind to explain what you mean by "legal C++"?
| 
| I mean it will compile with any C++ compiler.

Then in that perspective, your proposed function has it wrong because
it invokes an undefined behaviour.

-- 
Gabriel Dos Reis, dosreis@cmla.ens-cachan.fr

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



