Boost logo

Boost :

Subject: Re: [boost] workarounf for missing uintptr_t on PGI?
From: Lars Viklund (zao_at_[hidden])
Date: 2012-03-08 04:36:42


On Thu, Mar 08, 2012 at 08:22:14AM +0100, Oliver Kowalke wrote:
> Hi,
> the PGI compiler (pgi- 11.9) seams not to support intptr_t and uninptr_t.
> Does boost provide a workaround I'm not aware of?

I cannot reproduce this on 11.8 or 12.1, the following program compiles
cleanly with pgCC:

 #include <stdint.h>

 int main()
 {
   uintptr_t up = 0;
   intptr_t ip = 0;
 }

> Is the PGI compiler relevant (== does it matter if unit-test fails for PGI but pass GCC, MSVC, INTEL)?

C++03 does not define intptr_t or uintptr_t at all.
C++11 has them optional in <cstdint>.
C99 has them optional.

Relying on their presence seems a bit shaky.

-- 
Lars Viklund | zao_at_[hidden]

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