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

Sean McBride sean at rogue-research.com
Fri Dec 4 13:38:01 EST 2009


On 12/4/09 12:03 PM, Bradley Lowekamp said:

>Alternatives  for new types to use include:
>Just use the C99 types, but I'd estimate that would be more work to get
>that to work on every compiler. 

My 2¢: I think using the stdint.h types is best.  After all, they are
the standardized solution to this very problem!  And they are easier to
type and read than something like kwsys::FundamentalType_IntXX.

True, there are compilers that do not yet support them, but that can be
worked around with pstdint.h or otherwise.

Eventually (no doubt years away), ITK's minimum compiler requirements
will consist only of compilers that properly support these types.  At
that time, we can remove the cruft to support broken compilers and will
have a nice standards-compliant codebase.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list