Boost logo

Boost :

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

On Thu, Mar 08, 2012 at 11:08:51AM +0100, Oliver Kowalke wrote:
> the file reporting the error includes <boost/cstdint.hpp> which includes <stdint.h> - ?

You have yet to mention what you're trying to compile, nor have provided
any testcase that demonstrates the problem.

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

In any way, it seems like boost/config/compiler/pgi.hpp does not define
BOOST_HAS_STDINT_H, and thus, boost/cstdint.hpp doesn't try to include
stdint.h. Assuming that this is the place to define it, file a bug
against Boost.Config.

Note that the documentation for boost/cstdint.hpp does _not_ mention
uintptr_t or intptr_t at all, and thus, relying on it to pull them in by
proxy is a fault. It doesn't guarantee any inclusion of a stdint.h
either, as that's impossible to guarantee as not all platforms have one.

If you think that it's boost/cstdint.hpp:s responsibility to define such
a type, file a bug against it.

Lars Viklund | zao_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at