[Insight-developers] Fixed width integer types, itkIntTypes, and portable 64-bit integer

Brad King brad.king at kitware.com
Mon Dec 7 12:34:36 EST 2009


Bradley Lowekamp wrote:
> I had a concern about apple's universal builds and the size of long
> being check as a try compile. Fortunately it appear that it uses a
> couple of compile time checks to determine the sizes, which should be
> more robust, then falls back to the try-compile approach.

That was actually a recent fix, but it now works.  Also, Sean pointed
out that stdint.h may be just fine on Mac anyway.

> Also there is the issue of when we define that there is a 64-bit
> integer. I would be inclined to only define it when it is fully
> functioning; that is it can be converted to double and is printable with
> c++ stream.

VTK has try-compiles for this and knows how to define the missing streaming
operator.  Is conversion to double a problem on compilers other than VS6?

Tom Vercauteren wrote:
> Sounds fine to me. What would you think of reusing
>   itkIntTypes.h
> and implement your proposal in there instead of creating a new header
> file called
>   itkStdInt.h
> ?

Fine with me.

-Brad


More information about the Insight-developers mailing list