• 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: Xcode 2 Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2 Question


  • Subject: Re: Xcode 2 Question
  • From: David Leimbach <email@hidden>
  • Date: Wed, 4 May 2005 17:30:02 -0700

> Ugh ;-)
>
> If you really want to insure a certain sizing consider using int16_t
> (#include <stdint.h>) instead of short (is a signed short really what
> you want?).

It may work but stdint.h isn't part of C++ yet.  If you are very
strict about your code you shouldn't use C99 fixed width integer types
in your C++.  [though they will probably be added to the C++ standard
eventually... I can't think of a single reason not to].

Boost has some ways around this... using template metaprogramming and
the type metadata associated with <limits> to generate a set of fixed
width integer types.  I've written code that uses it and it seems to
work fine on LP32 and LP64 systems.

It may not be portable but it may just be easier in the long run to
simply use the stdint.h header.

Dave
 _______________________________________________
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: 
 >Xcode 2 Question (From: Markian Hlynka <email@hidden>)
 >Re: Xcode 2 Question (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Xcode 2 Question
  • Next by Date: Re: command line building - I'm pissed at Apple [10.4]
  • Previous by thread: Re: Xcode 2 Question
  • Next by thread: Re: Xcode 2 Question
  • Index(es):
    • Date
    • Thread