`>>' can't read what `<<' produced: NaNs and Inf

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Tue Mar 30 12:49:00 GMT 1999


Joao Cardoso <jcardoso@inescn.pt> writes:

| Hi,
| 
| [I have recently put a question on the egcs mailing list, but this is
| the correct place to do it, I think.]
| 
| `<<' generate special tokens when outputing float/doubles that are
| not numbers (NaN) or are infinity (Inf).
| However, `>>' can't read those tokens. Is this deliberate?

I don't think so. Personnally, I came accross, a few days ago, the
question of whether libtsdc++ should allow this or not--that was when
reading LIA-1. A quick look at clause 2 (Lexical conventions) lets me
under the impression that allowing reading NaN, Inf or so should be
flagged as extensions.


| 
| If I submit a patch to make libstdc++ read what it output, will it be
| accepted (in principle)? I think that no standard specify it...

If you have a patch, then send it to the list. 

My inclination will be to get it into lidstc++ as an extension. Does
anyone have another idea ? 


-- Gaby



More information about the Libstdc++ mailing list