
8 Mar
2012
8 Mar
'12
9:36 a.m.
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@acc.umu.se