Re: Xcode 2 Question
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