Boost logo

Boost :

Subject: Re: [boost] How to find: best integer type for processor
From: Othman, Ossama (ossama.othman_at_[hidden])
Date: 2008-10-30 13:08:43


>Long is a bit different as I think most programmers have always
>expected 'long' to be big enough to cover all offsets in the address
>space (most 64 bit unices have 64 bit longs. I think that Win64 is the
>exception). Anyways, correct code should always use size_t for sizes
>and ptrdiff_t for offsets.

... and {u}intptr_t when converting between pointers and integers.

-Ossama


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk