Boost logo

Boost :

Subject: Re: [boost] workarounf for missing uintptr_t on PGI?
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-03-08 05:08:51


> 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;
> }

the file reporting the error includes <boost/cstdint.hpp> which includes <stdint.h> - ?

 
> > 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.

a compuation requires an integer large enought to contain an address - inptr_t/uinptr_t a the choice for this purpose
> --
> Lars Viklund | zao_at_[hidden]
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost

-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

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