• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] calling isnan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] calling isnan


  • Subject: Re: [OT] calling isnan
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 18 Feb 2005 13:22:00 -0800

Apparently <cmath> is supposed to #undef isnan, according to the C standard. (Why, I'm not sure, but it is.) What it ought to do is to define <T>isnan() in the std:: namespace, but it's apparently not doing so for doubles.

See this: http://gcc.gnu.org/ml/gcc/2005-01/msg00577.html

As a workaround you can use the __isnand(x) underlying function for doubles.

Regards,

Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [OT] calling isnan
      • From: Chris Ridd <email@hidden>
References: 
 >[OT] calling isnan (From: Fred Bacon <email@hidden>)
 >Re: [OT] calling isnan (From: Chris Espinosa <email@hidden>)
 >Re: [OT] calling isnan (From: Fred Bacon <email@hidden>)

  • Prev by Date: Data Formatters don't
  • Next by Date: Re: [OT] calling isnan
  • Previous by thread: Re: [OT] calling isnan
  • Next by thread: Re: [OT] calling isnan
  • Index(es):
    • Date
    • Thread