Topic: quiet_nan()


Author: Nick Lai <nlai@ms.com>
Date: 1997/03/08
Raw View
SunOS has a function quiet_nan() declared in <math.h>.  This
function does not appear to be defined anywhere in the Solaris
include files.  What can one use instead?

 [The draft provides `std::numeric_limits<T>::quiet_nan()'
  in header <limits>.  See 18.2.1[lib.limits].
  -moderator (fjh).]

Thanks,

Nick
---
[ 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         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: James Kanze <james-albert.kanze@vx.cit.alcatel.fr>
Date: 1997/03/10
Raw View
Nick Lai <nlai@ms.com> writes:

|>  SunOS has a function quiet_nan() declared in <math.h>.  This
|>  function does not appear to be defined anywhere in the Solaris
|>  include files.  What can one use instead?
|>
|>   [The draft provides `std::numeric_limits<T>::quiet_nan()'
|>    in header <limits>.  See 18.2.1[lib.limits].
|>    -moderator (fjh).]

But most implementations don't:-).

Whatever: it is illegal (according to the C standard) for math.h to
contain such a function, at least in strictly conforming mode.  You
might ask Sun support: I suspect that either they have moved it to a
separate header (ieee.h?), or make it available with some combination of
compile flags (-DUSESUNSPECIFICINCLUDES, or some such).

--
James Kanze      home:     kanze@gabi-soft.fr        +33 (0)1 39 55 85 62
                 office:   kanze@vx.cit.alcatel.fr   +33 (0)1 69 63 14 54
GABI Software, Sarl., 22 rue Jacques-Lemercier, F-78000 Versailles France
     -- Conseils en informatique industrielle --
---
[ 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         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]