• 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: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)


  • Subject: Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)
  • From: Mike Jackson <email@hidden>
  • Date: Tue, 29 Aug 2006 16:56:17 -0400
  • Thread-topic: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)

On 8/29/06 4:46 PM, "E. Wing" <email@hidden> wrote:

>> Looking around it seems the "safer" way to do this is to use the
>> #define isnan(x) std::isnan(x)
>>
>
> This is very bad because if you have any code that calls std::isnan
> directly (which is legitimate) i.e.
> #include <cmath>
> int main() {
> std::isnan(0);
> return 0;
> }
>
> Then the #define you suggest will transform the call to
> std::std::isnan(0);
> which is invalid.
>
> If the #define is in a public header (like it is for OpenSceneGraph),
> this risks breaking a lot code for people.
>
> -Eric

As I am learning quickly, there is no "standard" in C++ so everyone does it
differently. So OpenSceneGraph will have to do it one way and ITK will have
to do it another way..

--
Mike Jackson
imikejackson <at> gmail <dot> com


 _______________________________________________
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

References: 
 >Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson) (From: "E. Wing" <email@hidden>)

  • Prev by Date: Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)
  • Next by Date: Building nested frameworks
  • Previous by thread: Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)
  • Next by thread: Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)
  • Index(es):
    • Date
    • Thread